# HG changeset patch # User Sascha Wilde # Date 1533286323 -7200 # Node ID 71970f03c9e8fa2445940da0ed4d93bbc40b98d1 # Parent 003243ec5ce5a152d23f62d4fc636516066cabc7 SPA: Fixed setup for proxy in "serve" dev server mode. diff -r 003243ec5ce5 -r 71970f03c9e8 client/.env.sample --- a/client/.env.sample Fri Aug 03 10:27:34 2018 +0200 +++ b/client/.env.sample Fri Aug 03 10:52:03 2018 +0200 @@ -3,6 +3,7 @@ #Backend URL VUE_APP_API_URL=/api/ +BACKEND_API_URL=http://backend.example.com:8088 #URL of secondary logo VUE_APP_SECONDARY_LOGO_URL= diff -r 003243ec5ce5 -r 71970f03c9e8 client/vue.config.js --- a/client/vue.config.js Fri Aug 03 10:27:34 2018 +0200 +++ b/client/vue.config.js Fri Aug 03 10:52:03 2018 +0200 @@ -13,8 +13,8 @@ }, devServer: { proxy: { - "/api/*": { - target: "http://localhost:8000", + "/api": { + target: process.env.BACKEND_API_URL, secure: false }, "/img/*": {