From b19dd94bccf17f0bf762208b988d9037c800d2ab Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 25 Nov 2024 12:11:26 +0000 Subject: [PATCH] chore(.env.template): change `NODE_ENV` default to "production" --- .env.template | 5 +++-- src/config/config.test.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.template b/.env.template index 7931dd8b..465d7a6a 100644 --- a/.env.template +++ b/.env.template @@ -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. diff --git a/src/config/config.test.js b/src/config/config.test.js index 05f16adc..9677aff1 100644 --- a/src/config/config.test.js +++ b/src/config/config.test.js @@ -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", () => {