diff --git a/src/main.ts b/src/main.ts index eb7dbba..46951d6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,7 +11,11 @@ const app = createApp(App).use(i18n) // returns false, even if it is true. // Making a copy of the variable seems to work const https = (import.meta.env.SAFETWITCH_HTTPS.slice() === "true") -app.provide('protocol', https ? 'https://' : 'http://') + +const protocol = https ? 'https://' : 'http://' +app.provide('protocol', protocol) +app.provide('rootUrl', `${protocol}${import.meta.env.SAFETWITCH_INSTANCE_DOMAIN}`) +app.provide('rootBackendUrl', `${protocol}${import.meta.env.SAFETWITCH_BACKEND_DOMAIN}`)