diff options
| author | Adam Soltys <[email protected]> | 2026-03-18 12:14:19 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-18 12:14:19 -0700 |
| commit | da2a15af53be6cad53abfff207d75b5d7d4200d6 (patch) | |
| tree | ac2946383ae6ec5505bf2b029449db59a63a29ac | |
| parent | 8bb481d58a1a27cbe60c2de68c26cfaa1afc36a1 (diff) | |
| download | coinos-ui-da2a15af53be6cad53abfff207d75b5d7d4200d6.tar.gz coinos-ui-da2a15af53be6cad53abfff207d75b5d7d4200d6.zip | |
make API proxy target configurable via API_URL env var
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
| -rw-r--r-- | vite.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js index e9765629..2e78e24f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -33,7 +33,7 @@ export default defineConfig(({ mode }) => { process.env.NODE_ENV === "development" ? { "/api/": { - target: "http://localhost:3119", + target: process.env.API_URL || "http://localhost:3119", rewrite: (path) => path.replace(/^\/api\//, ""), }, } |
