Skip to content

Commit 5b8dd3b

Browse files
committed
Default the host to the IPv4 localhost.
Devcontainers on windows don't seem to route connections to the IPv6 localhost (microsoft/vscode-remote-release#7029), and recent Debian seems to interpret "localhost" as IPv6.
1 parent da68b01 commit 5b8dd3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webserver/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"license": "Apache 2",
99
"private": true,
1010
"scripts": {
11-
"dev": "astro dev",
12-
"start": "node ./dist/server/entry.mjs",
11+
"dev": "astro dev --host ${HOST:-127.0.0.1}",
12+
"start": "HOST=${HOST:-127.0.0.1} node ./dist/server/entry.mjs",
1313
"fly-release-command": "node ./fly-release-command.mjs",
1414
"build": "astro build",
1515
"preview": "astro preview",

0 commit comments

Comments
 (0)