added frontend env file for non-docker stuf

This commit is contained in:
Elijah Lucian
2021-07-15 16:19:16 -06:00
parent 3f9b05b1dd
commit 99ed535e3e
3 changed files with 5 additions and 1 deletions

View File

@@ -6,9 +6,11 @@ import { AppContextProvider } from './contexts/AppContext'
import './app.scss'
const App = () => {
const baseURL = process.env.REACT_APP_API_URL || '/api'
return (
<BrowserRouter>
<AppContextProvider baseURL="/api">
<AppContextProvider baseURL={baseURL}>
<UserContextProvider>
<CoreLayout />
</UserContextProvider>