So, I recently had to deploy a Next.js project to a Ubuntu-server. Quite straight forward but you might run into some quirks.
We tend to deploy o...
For further actions, you may consider blocking this person and/or reporting abuse
Hi @react-stockholm
We encourage the entire article to be published on DEV.to (if you have proper rights), with a link back if appropriate. Otherwise, we recommend original material, such as original commentary on the article. From the Terms of Use:
Posts that are simply intended to encourage readers to view an external resource are discouraged.
Thank you.
Ill make sure to post the whole article here :)
With this pm2 setup, will don't works the ENV configs.
Use this insteed:
github.com/vercel/next.js/discussi...
The only "bug" open is the app version... (with my config will show nextjs version)
is the
--interpreter bashflag necessary? I've never seen this need to be used when running next.js with pm2 beforeIn the recent version of pm2 (as of this date), you don't need to use
--interpreterflag.You can directly use
pm2 start "yarn server".