Browse Source

chore: vite server options adjustment

无木 3 years ago
parent
commit
4805ca2626
1 changed files with 2 additions and 0 deletions
  1. 2 0
      vite.config.ts

+ 2 - 0
vite.config.ts

@@ -57,6 +57,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
       ],
     },
     server: {
+      // Listening on all local IPs
+      host: true,
       port: VITE_PORT,
       // Load proxy configuration from .env
       proxy: createProxy(VITE_PROXY),