diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 4735492..7efa49d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -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 (