Browse Source

🔧 chore(vite): configure dev server settings

- set host to 0.0.0.0 to allow external access
- enable allowedHosts for host validation
- set default port to 8080 for development server
yourname 2 months ago
parent
commit
4ae238d1f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vite.config.ts

+ 3 - 0
vite.config.ts

@@ -26,6 +26,9 @@ export default defineConfig(({ mode }) => {
       // target: "es2015",
     },
     server: {
+      host: "0.0.0.0",
+      allowedHosts: true,
+      port: 8080,
       watch: {
         // usePolling: true
       },