Skip to content

Commit

Permalink
fix(dev): keep dev server process alive after initial build
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Jan 19, 2023
1 parent a2fdf6e commit 54c612e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ export async function dev(
let mode = compiler.parseMode(modeArg ?? "", "development");

if (config.future.unstable_dev !== false) {
return devServer2.serve(config, flags);
await devServer2.serve(config, flags);
return await new Promise(() => {});
}

return devServer.serve(config, mode, flags.port);
Expand Down

0 comments on commit 54c612e

Please sign in to comment.