admin.xpcool.com/apps/web-tdesign/vite.config.ts
夏犀麟 0ab6cf5f17
Some checks failed
Build and Deploy (admin.xpcool.com) / build-and-deploy (push) Failing after 5m25s
CHG: 登录页去除账号下拉与内置密码;house 模块前端;Gitea act_runner 自动部署 workflow
- login.vue:移除 selectAccount 下拉与 MOCK_USER_OPTIONS(代码不存账号密码),手输+记住账号
- .env.production:VITE_GLOB_API_URL=/api/service(同源反代)
- house:api/house.ts + views/house/{community,listing,dashboard,data}
- .gitea/workflows/deploy.yml:node22 + pnpm11.16 + vite 直跑构建 → /data/www/admin.xpcool.com
2026-08-26 23:55:07 +08:00

27 lines
663 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig, viteCssLayerPlugin } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
plugins: [
// tdesign 的 css 包进 @layer td使 Tailwind 工具类可覆盖组件样式
viteCssLayerPlugin({
layerName: 'td',
packageName: 'tdesign-vue-next',
}),
],
server: {
proxy: {
// 统一后端前缀 → GoFrame 后端(端口 10100
'/api/service': {
changeOrigin: true,
target: 'http://localhost:10100',
ws: true,
},
},
},
},
};
});