Skip to content

Commit 843c0ff

Browse files
committed
Listen on all interfaces (both IPv4 and IPv6)
1 parent 4e843b2 commit 843c0ff

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

MyApp.Client/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default defineConfig({
4040
target: 'baseline-widely-available',
4141
},
4242
server: {
43+
host: true, // Listen on all interfaces (both IPv4 and IPv6)
4344
proxy,
4445
}
4546
})

MyApp/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
app.MapViteHmr(nodeProxy);
7777

7878
// Start the Vite dev server if the lockfile does not exist
79-
"../MyApp.Client/dist".AssertDir();
8079
app.RunNodeProcess(nodeProxy,
8180
lockFile: "../MyApp.Client/dist/lock",
8281
workingDirectory: "../MyApp.Client");

0 commit comments

Comments
 (0)