mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Allowing .env override of API_URI.
This commit is contained in:
parent
c02dbe4797
commit
4b75164baf
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import {useDirectories, useDownloaders, useHotspot, useSettings, useThrottle} fr
|
|||
import {Media, StatusContext, ThemeContext} from "../contexts/contexts";
|
||||
import {Button, darkTheme, Form, Header, Icon, lightTheme, Menu, Popup, Statistic} from "./Theme";
|
||||
|
||||
export const API_URI = `http://${window.location.host}/api`;
|
||||
export const API_URI = process.env && process.env.REACT_APP_API_URI ? process.env.REACT_APP_API_URI : `http://${window.location.host}/api`;
|
||||
export const VIDEOS_API = `${API_URI}/videos`;
|
||||
export const ARCHIVES_API = `${API_URI}/archive`;
|
||||
export const OTP_API = `${API_URI}/otp`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue