Skip to content

Commit

Permalink
fix: address already in use
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Nov 4, 2024
1 parent cdfbd9a commit 4c6f623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface DevOpts {
export async function dev(opts: DevOpts) {
const port = opts.port || DEFAULT_PORT;
const _port = await getPort(port);
const hmrPort = _port + 1;
const hmrPort = await getPort(_port + 1);
const host = opts.host || 'localhost';

await createServer({
Expand Down

0 comments on commit 4c6f623

Please sign in to comment.