fix: use 127.0.0.1 instead of localhost for serve URL

Avoids DNS resolution issues on some systems where localhost may resolve
to IPv6 ::1 while Bun listens on IPv4 only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-27 09:46:44 -06:00
parent e665183265
commit 229db44b8f
+1 -1
View File
@@ -87,7 +87,7 @@ export async function serve(options: ServeOptions): Promise<void> {
});
const actualPort = server.port;
const boardUrl = `http://localhost:${actualPort}`;
const boardUrl = `http://127.0.0.1:${actualPort}`;
console.error(`SERVE_STARTED: port=${actualPort} html=${html}`);