final env... again

This commit is contained in:
Elijah Lucian 2021-07-15 16:25:52 -06:00
parent c2c20a5c48
commit 799fedb45d

View File

@ -6,7 +6,10 @@ import { AppContextProvider } from './contexts/AppContext'
import './app.scss'
const App = () => {
const baseURL = process.env.REACT_APP_API_URL || '/api'
const baseURL =
process.env.NODE_ENV === 'production'
? '/api'
: process.env.REACT_APP_API_URL
return (
<BrowserRouter>