From 6efdd6fb17b461c9ebfb18fbd8664e1d6ed7ae37 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Mon, 9 Aug 2021 16:26:39 +0200 Subject: [PATCH] use an env variable for proxy. --- svelte-ui/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svelte-ui/rollup.config.js b/svelte-ui/rollup.config.js index d409155..ec6db46 100644 --- a/svelte-ui/rollup.config.js +++ b/svelte-ui/rollup.config.js @@ -76,7 +76,7 @@ export default { spa: "public/index.html", port: 5000, proxy: { - "/api/*": "localhost:8000", + "/api/*": process.env.API_PROXY_TARGET || "localhost:8000", }, }),