microsoft / vscode-azurestaticwebapps

Azure Static Web Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps
MIT License
88 stars 35 forks source link

Include Next in the list of preset options #612

Closed simonaco closed 2 years ago

simonaco commented 2 years ago

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.

alexweininger commented 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?

alexweininger commented 2 years ago

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.