diff --git a/caprover_deploy.sh b/caprover_deploy.sh index 503ff1da..c5ac96ab 100755 --- a/caprover_deploy.sh +++ b/caprover_deploy.sh @@ -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/" diff --git a/client/src/main.ts b/client/src/main.ts index c2f15e72..c0548c6a 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -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");