We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c2d237 commit acd69cdCopy full SHA for acd69cd
server.js
@@ -4,8 +4,9 @@ import { devConfig, prodConfig } from './server.configs.js';
4
const bsServer = create();
5
const args = process.argv.slice(2);
6
const config = args.includes('--dev') ? devConfig : prodConfig;
7
+const configName = config === devConfig ? 'development' : 'production';
8
const isWatch = Boolean(config.files) && config.watch !== false;
-const urlType = configName === 'prod' ? 'CDN' : 'local';
9
+const urlType = config === devConfig ? 'local' : 'CDN';
10
11
// prettier-ignore
12
console.log(`\nStarting ${configName} server (${urlType} URLs, watch: ${isWatch})\n`);
0 commit comments