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

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android studio kotlin source is null error