DEV Community

Setup Production Ready Next.js App - Part 1

Joby Joseph on February 16, 2024

Creating a Next.js project is a single-line command. But taking it from there to production takes much more. This article explains different steps ...
Collapse
 
lansolo99 profile image
Stéphane CHANGARNIER

I experienced many times error when re-installing old project modules while using a newer node version. I use nvm, and I have to remember to switch with nvm use. I usually set this reminder within the readme file.

I never heard of .nvmrc files, nor the "engines" package.json prop, and that will definitely be useful to force using a specific package manager and a node version 👍.

The only other way I considered this before was using a docker container, but seems a bit overengineering to me, especially for small projects.

Collapse
 
jobyjoseph profile image
Joby Joseph • Edited

I was also in the same boat till I knew this :D