Open History to see the last commit
1import { defineConfig } from "vite";
2import react from "@vitejs/plugin-react";
3export default defineConfig({
4 plugins: [react()],
5 server: {
6 port: 5173,
7 strictPort: true,
8 proxy: {
9 "/api": {
10 target: process.env.VITE_API_PROXY || "http://127.0.0.1:3001",
11 changeOrigin: true,
12 },
13 },
14 },
15 build: {
16 rollupOptions: {
17 output: {
18 manualChunks: {
19 three: ["three", "@react-three/fiber", "@react-three/drei"],
20 },
21 },
22 },
23 },
24});