Skip to content

Commit 4ba60bb

Browse files
Fix host blocking with vite config
1 parent 34d5cb5 commit 4ba60bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vite.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from 'vite';
2+
3+
export default defineConfig({
4+
server: {
5+
host: true, // Allow external connections
6+
},
7+
preview: {
8+
host: true, // Allow external connections in preview mode
9+
port: 8080,
10+
allowedHosts: 'all' // Allow all hosts for production deployment
11+
}
12+
});

0 commit comments

Comments
 (0)