Skip to content

Commit

Permalink
fix(vite): if no host pass localhost on baseUrl (#14304)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Jan 12, 2023
1 parent 9f19e93 commit 8a5bf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/executors/dev-server/dev-server.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ async function runViteDevServer(server: ViteDevServer): Promise<string> {
process.on('SIGTERM', processOnExit);
process.on('exit', processOnExit);
return `${server.config.server.https ? 'https' : 'http'}://${
server.config.server.host
server.config.server.host ?? 'localhost'
}:${server.config.server.port}`;
}

0 comments on commit 8a5bf6e

Please sign in to comment.