optional env var for easier development (#11426)

This commit is contained in:
Josh Hawkins 2024-05-18 19:49:38 -05:00 committed by GitHub
parent 0810873988
commit 171a142adb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import monacoEditorPlugin from "vite-plugin-monaco-editor";
const proxyHost = "localhost:5000";
const proxyHost = process.env.PROXY_HOST || "localhost:5000";
// https://vitejs.dev/config/
export default defineConfig({