Use env variable for GraphQL endpoint

This commit is contained in:
Christian Cueni 2023-01-18 11:28:09 +01:00
parent 6bbd509faf
commit 8955bdbb9e
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ APP_NAME=${1:-vbv-lernwelt}
echo "Deploy to $APP_NAME"
VITE_GRAPHQL_URL="/server/graphql/"
if [[ "$APP_NAME" == "myvbv" ]]
then
VITE_LOGOUT_REDIRECT="https://edumgr.b2clogin.com/edumgr.onmicrosoft.com/b2c_1_signupandsignin/oauth2/v2.0/logout/?post_logout_redirect_uri=https://myvbv.iterativ.ch/"

View File

@ -48,7 +48,7 @@ loadLocaleMessages(i18n, "de").then(() => {
app.use(pinia);
app.use(i18n);
app.use(urql, {
url: "http://localhost:8000/server/graphql/",
url: import.meta.env.VITE_GRAPHQL_URL,
});
app.mount("#app");