diff --git a/web/src/context/index.js b/web/src/context/index.js index bf6dd5416..7899c81e0 100644 --- a/web/src/context/index.js +++ b/web/src/context/index.js @@ -2,4 +2,4 @@ import { createContext } from 'preact'; export const Config = createContext({}); -export const ApiHost = createContext(import.meta.env.SNOWPACK_PUBLIC_API_HOST || ''); +export const ApiHost = createContext(import.meta.env.SNOWPACK_PUBLIC_API_HOST || window.baseUrl || '');