소스 검색

chore: vite server options adjustment

无木 3 년 전
부모
커밋
4805ca2626
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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),