Browse Source

use an env variable for proxy.

main
Gisle Aune 3 years ago
parent
commit
6efdd6fb17
  1. 2
      svelte-ui/rollup.config.js

2
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",
},
}),

Loading…
Cancel
Save