bill 2 vuotta sitten
vanhempi
commit
33909a3782
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      config.js
  2. 1 1
      vite.config.ts

+ 1 - 1
config.js

@@ -1,3 +1,3 @@
 export default {
-  dev: true
+  dev: false
 }

+ 1 - 1
vite.config.ts

@@ -12,7 +12,7 @@ const proxy = {
     rewrite: path => path.replace(/^\/local/, '')
   },
   '/fusion': {
-    target: 'https://test-mix3d.4dkankan.com',
+    target: config.dev ? 'https://test-mix3d.4dkankan.com' : 'https://mix3d.4dkankan.com',
     changeOrigin: true,
     rewrite: path => path.replace(/^\/api/, '')
   },