소스 검색

Atualiza vite.config.js para permitir acesso via counter.mixtech.dev.br e IP

allanmariano 4 달 전
부모
커밋
401f7f1eae
1개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 9 6
      vite.config.js

+ 9 - 6
vite.config.js

@@ -6,11 +6,14 @@ export default defineConfig({
   server: {
     host: true,
     port: 5173,
-    allowedHosts: ['counter.mixtech.dev.br'],
+    allowedHosts: [
+      '10.80.146.81',
+      'counter.mixtech.dev.br'
+    ],
     hmr: {
-      host: 'counter.mixtech.dev.br', 
-      protocol: 'wss',                
-      port: 443,                      
-    },
-  },
+      host: 'counter.mixtech.dev.br',
+      protocol: 'ws',
+      port: 5173
+    }
+  }
 });