提交 8ebdc6ae 编写于 作者: zhangzhiwei's avatar zhangzhiwei

.

上级 f07f7c63
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
// https://vitejs.dev/config/
import path from "path";
// https://vitejs.dev/config/
......@@ -9,9 +8,9 @@ let Timestamp = ''
filePath = 'assets/'; //打包文件存放文件夹路径
Timestamp = '.' + new Date().getTime();//时间戳
export default defineConfig({
plugins: [
uni()
],
plugins: [
uni()
],
build:{
rollupOptions: {
// dir: "dist",
......@@ -27,23 +26,18 @@ export default defineConfig({
}
}
},
server: {
proxy: {
'^/pre': {
target: 'https://wxapplets-jyx.edstao.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/pre/, '')
},
'^/api': {
target: 'https://wxapplets-jyx.edstao.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/pre/, '')
},
'^/prod': {
target: 'https://etaoh5.edstao.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/prod/, '')
}
server: {
proxy: {
'^/pre': {
target: 'https://wxapplets-jyx.edstao.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/pre/, '')
},
'^/prod': {
target: 'https://etaoh5.edstao.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/prod/, '')
}
}
}
}
});
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册