Skip to content

Commit f6d77fe

Browse files
committed
Use localhost for vite
1 parent 82ceb40 commit f6d77fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/editor/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ function redirectAll() {
2626

2727
// https://vitejs.dev/config/
2828
export default defineConfig({
29+
server: {
30+
host: "localhost",
31+
},
2932
define: {
3033
// Node.js global to browser globalThis
3134
// global: "globalThis", // breaks some modules work because of https://github.com/vitejs/vite/issues/6295, done in index.tsx instead

0 commit comments

Comments
 (0)