chore: fix
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
const DEV_API_TARGET = "http://localhost:8080";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
@@ -9,11 +11,11 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "https://5.181.0.112.nip.io",
|
||||
target: DEV_API_TARGET,
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/uploads": {
|
||||
target: "https://5.181.0.112.nip.io",
|
||||
target: DEV_API_TARGET,
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user