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

The specified initialization vector (IV) does not match the block size for this algorithm