aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/vite.config.ts
blob: 69cc0dcbf9eea7be25e8013d3280eed31053a95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({
	plugins: [react(), tailwindcss()],
	server: {
		proxy: {
			"/graphql": {
				target: "http://localhost:8080",
				changeOrigin: true,
			},
		},
		hmr: {
			overlay: true,
		},
	},
	define: {
		"process.env.NODE_ENV": JSON.stringify(
			process.env.NODE_ENV || "development",
		),
	},
});