2026-05-03 19:51:57 -05:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
import path from 'path';
|
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
|
|
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
2026-05-03 22:33:21 -05:00
|
|
|
publicDir: 'client/public',
|
2026-05-03 19:51:57 -05:00
|
|
|
resolve: {
|
|
|
|
|
alias: { '@': path.resolve(__dirname, './client') },
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
port: 5173,
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': { target: 'http://localhost:3000', changeOrigin: true },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
build: {
|
|
|
|
|
outDir: 'dist',
|
|
|
|
|
emptyOutDir: true,
|
|
|
|
|
},
|
|
|
|
|
});
|