File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212 import User from ' $lib/components/User/User.svelte' ;
1313 import SomethingWentWrong from ' $lib/components/SomethingWentWrong/SomethingWentWrong.svelte' ;
1414 import SplashLoading from ' $lib/components/SplashLoading/SplashLoading.svelte' ;
15+ import { page } from ' $app/stores' ;
1516
1617 let contextProviderProps: AsyncResult <UnityAuthContextProviderProps > = ASYNC_IN_PROGRESS ;
1718
1819 async function initLibre311ContextProps() {
1920 try {
2021 const mode: Mode = getModeFromEnv (import .meta .env );
21- const unityAuthBaseURL = String (import .meta .env .VITE_BACKEND_URL ?? ' ' ) || ' /api ' ;
22+ const unityAuthBaseURL = String (import .meta .env .VITE_BACKEND_URL ?? ' ' ) || $page . url . origin ;
2223
2324 const ctxProps: UnityAuthContextProviderProps = {
2425 mode: mode ,
You can’t perform that action at this time.
0 commit comments