I already have next.js application running as Azure Web Service with the structure below:
But I cannot find any information which folders is required exactly. Deploying to Vercel is out of scope because main requirement is to use Azure Web Applications. My project using server-side rendering so the folder ".next" has been created with next build
command and looks like this
next export
is out of scope too because of SSR.
Questions are:
- In addition to the .next folder which folders and files do I need also?
- Should I have "server.js" in the site root because redirect rule and iisnode behavior are set in the
web.config
? - Can I deploy only .next folder? If yes how server will start in Azure Web App service?
Thank you!