From c9a78c657cc737b74a9d4d4cfc935dffdd765fa2 Mon Sep 17 00:00:00 2001 From: xiaohei Date: Mon, 29 Dec 2025 08:45:10 +0000 Subject: [PATCH] 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 --- .github/workflows/azure-static-web-apps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-static-web-apps.yml b/.github/workflows/azure-static-web-apps.yml index a2898239..a215b758 100644 --- a/.github/workflows/azure-static-web-apps.yml +++ b/.github/workflows/azure-static-web-apps.yml @@ -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: