fix: 第一版普遍修复完成。
This commit is contained in:
@@ -53,14 +53,14 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
|
||||
open: viteEnv.VITE_OPEN,
|
||||
cors: true,
|
||||
// 跨域代理配置
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "https://vue3-design.teek.top",
|
||||
changeOrigin: true,
|
||||
secure: true, // 是否忽略 https 安全证书问题,true 不忽略,false 忽略
|
||||
rewrite: path => path.replace(/^\/api/, ""),
|
||||
},
|
||||
},
|
||||
// proxy: {
|
||||
// "/api": {
|
||||
// target: "https://vue3-design.teek.top",
|
||||
// changeOrigin: true,
|
||||
// secure: true, // 是否忽略 https 安全证书问题,true 不忽略,false 忽略
|
||||
// rewrite: path => path.replace(/^\/api/, ""),
|
||||
// },
|
||||
// },
|
||||
// 预热文件以提前转换和缓存结果,降低启动期间的初始页面加载时长并防止转换瀑布
|
||||
warmup: {
|
||||
clientFiles: ["./index.html", "./src/{views,components}/*"],
|
||||
|
||||
Reference in New Issue
Block a user