fix(azure): set output_location to empty string for IS_STATIC_EXPORT

When IS_STATIC_EXPORT=true, Azure SWA expects output_location to be
an empty string ('') to auto-detect Next.js static export files.

Azure will look for the app source in app_location='/' and auto-discover
the 'out' directory where Next.js static export outputs files by default.

Fixes: Cannot find default file in artifacts folder (/) error
This commit is contained in:
xiaohei
2025-12-29 08:45:10 +00:00
parent 5209a8cefe
commit c9a78c657c
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
action: 'upload'
app_location: '/'
api_location: ''
output_location: 'out'
output_location: ''
skip_app_build: true
skip_deploy_on_missing_secrets: true
env: