From fcc9cd56cc2a4870d3609ffcc291c80edf145feb 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 || '');