Jelajahi Sumber

update index.js to use baseUrl

Blake Blackshear 4 tahun lalu
induk
melakukan
7f4e042dfa
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      web/src/context/index.js

+ 1 - 1
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 || '');