Skip to content

Commit acd69cd

Browse files
jhildenbiddlesy-records
authored andcommitted
Fix console output
1 parent 0c2d237 commit acd69cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { devConfig, prodConfig } from './server.configs.js';
44
const bsServer = create();
55
const args = process.argv.slice(2);
66
const config = args.includes('--dev') ? devConfig : prodConfig;
7+
const configName = config === devConfig ? 'development' : 'production';
78
const isWatch = Boolean(config.files) && config.watch !== false;
8-
const urlType = configName === 'prod' ? 'CDN' : 'local';
9+
const urlType = config === devConfig ? 'local' : 'CDN';
910

1011
// prettier-ignore
1112
console.log(`\nStarting ${configName} server (${urlType} URLs, watch: ${isWatch})\n`);

0 commit comments

Comments
 (0)