fix(azure): apply official Azure SWA static export configuration

Per Microsoft official documentation:
https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs-static-export

Key changes:
- Set IS_STATIC_EXPORT=true environment variable (required for static Next.js)
- Set output_location to 'out' (Next.js static export default)
- Set api_location to empty string (no API for static export)
- Keep skip_app_build=true (we build in previous step)

This is the official Azure recommended configuration for Next.js static sites.
This commit is contained in:
xiaohei
2025-12-29 08:31:08 +00:00
parent 4511fe5694
commit ca537c971e
+3 -1
View File
@@ -36,7 +36,9 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: 'upload'
app_location: '/'
api_location: ''
output_location: 'out'
skip_app_build: true
skip_api_build: true
skip_deploy_on_missing_secrets: true
env:
IS_STATIC_EXPORT: true