Static Web Apps
Azure Static Web Apps requires api_location to be empty for hybrid Next.js
Azure Static Web Apps detected a non-static Next.js app and rejected the workflow configuration because api_location was set instead of being left empty.
Static Web Apps
Azure Static Web Apps detected a non-static Next.js app and rejected the workflow configuration because api_location was set instead of being left empty.
Observed message
'api_location' value should be an empty string ("") for Next.js applications which are not statically exported.Why it happens
How to fix it
Official reference
Azure Static Web Apps: Deploy hybrid Next.js appsRelated errors
Explore more