From 7f4e042dfa4708419d0e9722b53c1b33f24a51ff Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 19 Jan 2021 21:31:17 -0600 Subject: [PATCH] update index.js to use baseUrl --- web/src/context/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || '');