Skip to content

Setting the Environment Mode

The discriminator value (e.g., NODE_ENV) is read from the environment:

Terminal window
# Development (default)
envictus -- npm run dev
# Production
NODE_ENV=production envictus -- node dist/server.js
# Or export it
export NODE_ENV=production
envictus -- node dist/server.js