fix: default to production

This commit is contained in:
Isaac 2023-02-24 00:18:38 +00:00
parent adab3831fa
commit f97a7ab61c
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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');