Skip to content

Commit

Permalink
Fix console output
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Dec 21, 2023
1 parent 15a4848 commit 3d8179a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Expand Up @@ -4,8 +4,9 @@ import { devConfig, prodConfig } from './server.configs.js';
const bsServer = create();
const args = process.argv.slice(2);
const config = args.includes('--dev') ? devConfig : prodConfig;
const configName = config === devConfig ? 'development' : 'production';
const isWatch = Boolean(config.files) && config.watch !== false;
const urlType = configName === 'prod' ? 'CDN' : 'local';
const urlType = config === devConfig ? 'local' : 'CDN';

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

0 comments on commit 3d8179a

Please sign in to comment.