Files
ai-stack-deployer/client/vite.config.ts
Oussama Douhou 8977a6fdee New design v0.2
New design and framework
2026-01-13 10:49:47 +01:00

39 lines
798 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
export default defineConfig({
plugins: [react(), tailwindcss()],
build: {
outDir: '../dist/client',
emptyOutDir: true,
rollupOptions: {
output: {
manualChunks: {
'three': ['three', '@react-three/fiber'],
'framer-motion': ['framer-motion'],
},
},
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
})