diff --git a/pwa/src/hooks/useEnvironment.ts b/pwa/src/hooks/useEnvironment.ts index 9aef93a8..8486b586 100644 --- a/pwa/src/hooks/useEnvironment.ts +++ b/pwa/src/hooks/useEnvironment.ts @@ -33,7 +33,7 @@ export const useEnvironment = () => { window.sessionStorage.setItem("BASE_URL", process.env.GATSBY_BASE_URL ?? ""); window.sessionStorage.setItem( "NEXTCLOUD_API_URL", - process.env.GATSBY_NEXTCLOUD_BASE_URL ?? "http://nextcloud.local/index.php/apps/opencatalogi/api", + process.env.GATSBY_NEXTCLOUD_API_URL ?? "http://nextcloud.local/index.php/apps/opencatalogi/api", ); window.sessionStorage.setItem("NL_DESIGN_THEME_CLASSNAME", process.env.GATSBY_NL_DESIGN_THEME_CLASSNAME ?? ""); window.sessionStorage.setItem("GITHUB_ORGANIZATION_URL", process.env.GATSBY_GITHUB_ORGANIZATION_URL ?? ""); @@ -86,7 +86,7 @@ export const useEnvironment = () => { window.sessionStorage.setItem("API_URL", config.GATSBY_API_URL ?? ""); window.sessionStorage.setItem( "NEXTCLOUD_API_URL", - config.GATSBY_NEXTCLOUD_BASE_URL ?? "http://nextcloud.local/index.php/apps/opencatalogi/api", + config.GATSBY_NEXTCLOUD_API_URL ?? "http://nextcloud.local/index.php/apps/opencatalogi/api", ); window.sessionStorage.setItem("BASE_URL", config.GATSBY_BASE_URL ?? ""); window.sessionStorage.setItem("NL_DESIGN_THEME_CLASSNAME", config.GATSBY_NL_DESIGN_THEME_CLASSNAME ?? "");