final env... again
This commit is contained in:
parent
c2c20a5c48
commit
799fedb45d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user