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

Add Next.JS build presets #658

Closed alexweininger closed 2 years ago

alexweininger commented 2 years ago

Closes #612

As @simonaco presents in #612, Next.JS has two ways to create your app:

  1. the standard way, which includes server-side rendering (SSR). This bundles a custom express.js server into your app as an api
  2. static export, which doesn't support SSR, and exports as, as the name implies, static html + js + css

We can add these both as different presets to make it easy for users, and I think this would be a good way to show them:

image

anthonychu commented 2 years ago

@alexweininger can you confirm the branding for Next.js? I think it should be lowercase js.

alexweininger commented 2 years ago

can you confirm the branding for Next.js? I think it should be lowercase js.

@anthonychu Yup, I'll change it. I swear it used to be Next.JS 😅

alexweininger commented 2 years ago

Though would it make sense to put the static export under the static generator group?

I had this, but it looks better with the Next.js options grouped together. And technically it's a framework so...