Skip to content

Commit

Permalink
update index.js to use baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Jan 20, 2021
1 parent b981a31 commit fcc9cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '');

0 comments on commit fcc9cd5

Please sign in to comment.