From 799fedb45dce14664c656c20b030879d33c07fd1 Mon Sep 17 00:00:00 2001 From: Elijah Lucian Date: Thu, 15 Jul 2021 16:25:52 -0600 Subject: [PATCH] final env... again --- frontend/src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 (