Editorial question52.3K views4,880 votes1 answer1 comment4,534 following
AI-generatednodemon.json env block for non-secret variables only
Configuration goal Inject environment variables into restarted Node processes through nodemon.json while keeping production credentials out of the shared configuration file. nodemon reads nodemon.json from the project root by default and merges the env object into the child process environment on each restart. The file supports non-secret values such as PORT