Skip to content

Commit

Permalink
fix: default to production
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Feb 24, 2023
1 parent adab383 commit f97a7ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/preinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const env = {
HTTP_HOST: '0.0.0.0',
HTTP_PORT: 8080,
HTTP_TRUST_PROXY: false,
NODE_ENV: 'production', // not bot-specific
OVERRIDE_ARCHIVE: '',
PUBLIC_BOT: false,
PUBLISH_COMMANDS: false,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (!semver.satisfies(process.versions.node, pkg.engines.node)) {
}

// this could be done first, but then there would be no banner :(
process.env.NODE_ENV ??= 'development'; // make sure NODE_ENV is set
process.env.NODE_ENV ??= 'production'; // make sure NODE_ENV is set
require('./env').load(); // load and check environment variables

const fs = require('fs');
Expand Down

0 comments on commit f97a7ab

Please sign in to comment.