Skip to content

Commit

Permalink
chore(.env.template): change NODE_ENV default to "production"
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 25, 2024
1 parent 6f5f953 commit b19dd94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
### STANDARD ENV VARIABLES ################################
###########################################################

# Set to "production" for live system
NODE_ENV="development"
# This should always be set to "production".
# See https://www.youtube.com/watch?v=HMM7GJC5E2o
NODE_ENV="production"

# NOTE: Needs to be set to "0.0.0.0" if using Docker.
# Ignored if deployed with included Docker Compose file.
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { glob } = require("glob");
const { joinSafe } = require("upath");
const getConfig = require(".");

const originalEnv = { ...process.env, NODE_ENV: "development" };
const originalEnv = { ...process.env, NODE_ENV: "production" };
const tempDir = joinSafe(__dirname, "../../temp");

describe("Configuration", () => {
Expand Down

0 comments on commit b19dd94

Please sign in to comment.