blakeblackshear.frigate/web/src/api/baseUrl.js
2022-05-19 07:31:51 -05:00

3 lines
150 B
JavaScript

import { API_HOST } from '../env';
export const baseUrl = API_HOST || `${window.location.protocol}//${window.location.host}${window.baseUrl || '/'}`;