Skip to content

Commit a40e840

Browse files
authored
fix(core): bind dev server to all interfaces for WSL2 compatibility (#125)
1 parent f13ebef commit a40e840

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/fix-wsl-dev-server.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-blocks/core": patch
3+
---
4+
5+
fix: bind dev server to all interfaces (0.0.0.0) for WSL2 compatibility

packages/core/src/scripts/dev-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ export async function startDevServer(options: DevServerOptions) {
599599
}
600600

601601
// ── Start listening ────────────────────────────────────────────────────
602-
server.listen(port, '127.0.0.1', async () => {
602+
server.listen(port, async () => {
603603
console.log(`AWS Blocks local server running on http://localhost:${port}`);
604604
buildAndSendEvent({ command: 'dev', state: 'SUCCESS', duration: Date.now() - devStartTime });
605605

0 commit comments

Comments
 (0)