Files
ln-bi/vite.config.ts
T
2026-09-28 13:16:12 +08:00

20 lines
583 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: {
// Preview requests append audit logs; watching them creates a reload/request loop.
watch: { ignored: ['**/logs/**'] },
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
});