17 lines
346 B
TypeScript
17 lines
346 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
const unrealRemoteUrl = process.env.UNREAL_REMOTE_URL ?? "http://127.0.0.1:30010";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
"/remote": {
|
|
target: unrealRemoteUrl,
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|