فهرست منبع

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
+    }
+  }
 });