nextjs - building and deploying your applications

To start nextjs application, we need to run "npm run build", to get a production build. Next you need to manually copy a folder called "static" to ./next/standalone/.next (notice there is 2 .next folder)



Then by running "node server.js" in standalone folder will allow you to load your application correctly.







Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error