aboutsummaryrefslogtreecommitdiffhomepage
path: root/vite.config.ts
blob: 757a0af74472399b29737ce95779ddf996dce202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({
	plugins: [react()],
	root: ".",
	build: {
		outDir: "dist/client",
	},
	server: {
		proxy: {
			"/api": {
				target: "http://localhost:3000",
				changeOrigin: true,
			},
		},
	},
});