Closed simonaco closed 2 years ago
I can only get Next.JS app to deploy properly if I set ouput_location
to out
. This is consistent with this tutorial also: https://docs.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs.
Is setting it to .next
a requirement for upcoming work happening on the platform?
Update from Simona: only thing we need to provide is the app_location
and we need to wait for the platform team to support Next.JS.
Include Next as an option during create static web apps step 3/5.
Default values:
app_location: '/' api:'' output_location: ''
If users are deploying a static export next.js app, they need to be able to specify 'out' as an output folder https://nextjs.org/docs/advanced-features/static-html-export
For users that are deploying dynamic Next.js apps (e.g. using SSR, API Routes, etc), they should leave api and output_location empty.