diff --git a/packages/wb/src/scripts/run.ts b/packages/wb/src/scripts/run.ts index a2771870..659b6610 100644 --- a/packages/wb/src/scripts/run.ts +++ b/packages/wb/src/scripts/run.ts @@ -151,5 +151,7 @@ function configureEnv(env: Record, opts: Options): R } function fixBunCommand(command: string): string { - return command.includes('next dev') ? command.replaceAll('bun --bun', 'bun') : command; + return command.includes('next dev') || command.includes('pm2-runtime') + ? command.replaceAll('bun --bun', 'bun') + : command; }