Files

26 lines
513 B
TypeScript
Raw Permalink Normal View History

2025-11-08 15:02:18 -06:00
import { defineConfig } from 'vite'
2025-11-08 22:18:27 -06:00
import tailwindcss from '@tailwindcss/vite'
2025-11-08 15:02:18 -06:00
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [
2025-11-08 22:18:27 -06:00
tailwindcss(),
2025-11-08 15:02:18 -06:00
react({
babel: {
plugins: [['babel-plugin-react-compiler']],
},
2025-11-08 22:18:27 -06:00
})
2025-11-08 15:02:18 -06:00
],
2025-12-26 22:35:53 -06:00
// DEV PROXY
server: {
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
});