- Jenkinsfile: 从 nodejs.org 下载 Node.js 二进制(容器无法访问 GitHub) - vite.config.ts: 代理目标改为后端实际端口 5211,去掉 rewrite - auth.ts: withCredentials 移到 axios config 正确位置
19 lines
338 B
TypeScript
19 lines
338 B
TypeScript
import { defineConfig } from '@vben/vite-config';
|
|
|
|
export default defineConfig(async () => {
|
|
return {
|
|
application: {},
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
changeOrigin: true,
|
|
target: 'http://localhost:5211',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
});
|