22 lines
645 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|