Files
ln-bi/vite.config.ts
T
shishengliang 39ecde55d4
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
feat(assets): 完成故障维修运维 BI 与 Excel 报表导出
2026-10-13 16:07:11 +08:00

22 lines
645 B
TypeScript

import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
plugins: [react(), tailwindcss()],
server: {
host: '0.0.0.0',
allowedHosts: ['qunfa.lnoneos.com'],
// Preview requests append audit logs; watching them creates a reload/request loop.
watch: { ignored: ['**/logs/**'] },
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
});