I m trying to deploy a next.js (with typescript) app on Azure, using Bitbucket pipelines. In my pipeline, I build the next.js, with build config the following:
// next.config.js
/**@type {import( next ).NextConfig} */
const nextConfig = {
output: standalone ,
}
module.exports = nextConfig
之后,我部署了它。
- step: &deploy-preview
caches:
- node
- nextcache
script:
- zip -r files.zip .next/ public/
- pipe: microsoft/azure-web-apps-deploy:1.0.4
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP
AZURE_APP_NAME: $AZURE_APP_NAME
ZIP_FILE: files.zip
artifacts:
- "files.zip"
If I take a look at the artifacts folder it does contain all the files I expect.
On the Azure web App i have the startup command node .next/standalone/server.js
该系统的确启用了一台下台服务器,但无法找到文件。 我的奥塞莱认为,他们都是404人。 然而,档案是存在的。
谁能让我对正在做些什么以及可能做些什么来加以纠正?