forked from xiaohei/taiji-pda-v0
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user