# HG changeset patch # User Thomas Junk # Date 1533643051 -7200 # Node ID a80e589c5ade1b3d1c86b3b6726c10d8dc41bd3c # Parent 23d4a9104b0cb2488ddcf63e3a00e0e10691fb50 fix: Fix broken environment variable setting In order to use .env variables with vue-cli it is necessary to adhere to the naming convention VUE_$VARNAME. See issue90. diff -r 23d4a9104b0c -r a80e589c5ade client/.env.sample --- a/client/.env.sample Tue Aug 07 13:09:34 2018 +0200 +++ b/client/.env.sample Tue Aug 07 13:57:31 2018 +0200 @@ -3,7 +3,7 @@ #Backend URL VUE_APP_API_URL=/api/ -BACKEND_API_URL=http://backend.example.com:8088 +VUE_BACKEND_API_URL=http://backend.example.com:8088 #URL of secondary logo VUE_APP_SECONDARY_LOGO_URL= diff -r 23d4a9104b0c -r a80e589c5ade client/vue.config.js --- a/client/vue.config.js Tue Aug 07 13:09:34 2018 +0200 +++ b/client/vue.config.js Tue Aug 07 13:57:31 2018 +0200 @@ -14,7 +14,7 @@ devServer: { proxy: { "/api": { - target: process.env.BACKEND_API_URL, + target: process.env.VUE_BACKEND_API_URL, secure: false }, "/img/*": {