23 lines
777 B
TypeScript
23 lines
777 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:3001",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
|
},
|
|
"/claim": { target: "http://localhost:3001", changeOrigin: true },
|
|
"/auth": { target: "http://localhost:3001", changeOrigin: true },
|
|
"/user": { target: "http://localhost:3001", changeOrigin: true },
|
|
"/config": { target: "http://localhost:3001", changeOrigin: true },
|
|
"/stats": { target: "http://localhost:3001", changeOrigin: true },
|
|
"/deposit": { target: "http://localhost:3001", changeOrigin: true },
|
|
},
|
|
},
|
|
});
|