| vite.config.js | ●●●●● patch | view | raw | blame | history |
vite.config.js
@@ -12,8 +12,9 @@ port: 2888, proxy: { '/api': { target: 'http://192.168.1.88:2888/api', //target: 'https://saber3.bladex.cn/api', target: 'http://localhost', // target: 'https://132v69t077.yicp.fun/api', // target: 'https://saber3.bladex.cn/api', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''), }, @@ -28,6 +29,9 @@ utils: resolve(__dirname, './src/utils'), }, }, build: { outDir: 'zttj-web', }, plugins: createVitePlugins(env, command === 'build'), }); };