Skip to content

Commit f0692fd

Browse files
committed
fix types
1 parent 247ec9c commit f0692fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

special-pages/watch.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ writeTimestamp();
4848
});
4949

5050
const ctx = await esbuild.context(opts);
51-
const { host, port } = await ctx.serve({
51+
const { hosts, port } = await ctx.serve({
5252
servedir: publicDir,
5353
});
5454
await ctx.watch({});
55-
console.log(`serving '${relative(CWD, publicDir)}' at http://${host}:${port}`);
55+
for (const host of hosts) {
56+
console.log(`serving '${relative(CWD, publicDir)}' at http://${host}:${port}`);
57+
}
5658
}
5759

5860
// also watch things outside of esbuild, like translations/types

0 commit comments

Comments
 (0)