We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f09842 + a6a2dfe commit 2c2e540Copy full SHA for 2c2e540
vite.config.js
@@ -1,7 +1,7 @@
1
import { defineConfig } from "vite";
2
import react from "@vitejs/plugin-react";
3
import tailwindcss from "@tailwindcss/vite";
4
-import path from "path"
+import path from "path";
5
6
// https://vite.dev/config/
7
export default defineConfig({
@@ -12,4 +12,13 @@ export default defineConfig({
12
"shadcn/ui": path.resolve(__dirname, "src/components/ui"),
13
},
14
15
+ server: {
16
+ proxy: {
17
+ "/api": {
18
+ target: "http://3.37.158.7/8080",
19
+ changeOrigin: true,
20
+ secure: false,
21
+ },
22
23
24
});
0 commit comments