Skip to content

Commit

Permalink
fix(wb): show NEXT_PUBLIC_WB_ENV setter in start command
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 5, 2023
1 parent 58eb655 commit 9ac7fa7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/wb/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ export const startCommand: CommandModule<unknown, InferredOptionTypes<typeof bui
switch (argv.mode || 'dev') {
case 'dev':
case 'development': {
configureEnvironmentVariables(argv, deps, 'development');
await runWithSpawn(`WB_ENV=${process.env.WB_ENV} ${scripts.start(argv)}`, argv);
const prefix = configureEnvironmentVariables(argv, deps, 'development');
await runWithSpawn(`${prefix}${scripts.start(argv)}`, argv);
break;
}
case 'staging': {
configureEnvironmentVariables(argv, deps, 'staging');
await runWithSpawn(`WB_ENV=${process.env.WB_ENV} ${scripts.startProduction(argv, 8080)}`, argv);
const prefix = configureEnvironmentVariables(argv, deps, 'staging');
await runWithSpawn(`${prefix}${scripts.startProduction(argv, 8080)}`, argv);
break;
}
case 'docker': {
configureEnvironmentVariables(argv, deps, 'docker');
await runWithSpawn(`WB_ENV=${process.env.WB_ENV} ${scripts.startDocker(argv)}`, argv);
const prefix = configureEnvironmentVariables(argv, deps, 'docker');
await runWithSpawn(`${prefix}${scripts.startDocker(argv)}`, argv);
break;
}
default: {
Expand Down

0 comments on commit 9ac7fa7

Please sign in to comment.