Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Feb 25, 2025
1 parent 247ec9c commit f0692fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions special-pages/watch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ writeTimestamp();
});

const ctx = await esbuild.context(opts);
const { host, port } = await ctx.serve({
const { hosts, port } = await ctx.serve({
servedir: publicDir,
});
await ctx.watch({});
console.log(`serving '${relative(CWD, publicDir)}' at http://${host}:${port}`);
for (const host of hosts) {
console.log(`serving '${relative(CWD, publicDir)}' at http://${host}:${port}`);
}
}

// also watch things outside of esbuild, like translations/types
Expand Down

0 comments on commit f0692fd

Please sign in to comment.