2026-06-19 17:00:57 -04:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
|
import { fileURLToPath, URL } from 'node:url';
|
2025-10-18 21:29:28 -04:00
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig({
|
2026-06-19 17:00:57 -04:00
|
|
|
plugins: [vue()],
|
2025-10-18 21:29:28 -04:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2026-06-19 17:00:57 -04:00
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
|
},
|
2025-10-18 21:29:28 -04:00
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
host: '0.0.0.0',
|
|
|
|
|
port: 5173,
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://backend:8000',
|
|
|
|
|
changeOrigin: true,
|
2026-06-19 17:00:57 -04:00
|
|
|
rewrite: (path: string) => path.replace(/^\/api/, ''),
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-10-19 21:35:02 -04:00
|
|
|
},
|
|
|
|
|
define: {
|
|
|
|
|
// Enable automatic validation in development
|
2026-06-19 17:00:57 -04:00
|
|
|
__AUTO_VALIDATE__: JSON.stringify(process.env.NODE_ENV !== 'production'),
|
|
|
|
|
},
|
|
|
|
|
});
|