diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-08 01:19:23 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-08 01:22:36 -0500 |
| commit | b66bded4c90437503a25fe89e16d15422029dc0b (patch) | |
| tree | 3c31c184f1caefb7424d7f839920977f4b5881ba | |
| parent | 26477b67f500a1af74e136a8ba858ca6b0f54814 (diff) | |
Allow setting API_SERVER to forward `npm run dev` to a running instance.
| -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 3229f33..863d652 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,7 +10,7 @@ export default defineConfig({ ] }, proxy: { - '/api': 'http://localhost:64209', + '/api': process.env['API_SERVER'] || 'http://localhost:64209', }, }, }); |
