nextjs 13 - deploying a production build (standalone)

You can create a production build by running these command npm run build To run your production build in standalone mode, run the following command node .next/standalone/server.js You also need to copy the static files to your .next/standalone/.next/static folder As stated in the docs: https://nextjs.org/docs/pages/api-reference/next-config-js/output It is meant to be deployed to a cdn, if not you need to do some manual copying.

Comments

Popular posts from this blog

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