diff --git a/client/src/constants/index.js b/client/src/constants/index.js index d02b66a..bb46e58 100644 --- a/client/src/constants/index.js +++ b/client/src/constants/index.js @@ -1,7 +1,5 @@ -const { - // api url (where your server is hosted at) - REACT_APP_BACKEND_URL: BACKEND_URL = 'http://localhost:8080', -} = process.env +// api url (where your server is hosted at) +const BACKEND_URL = process.env.REACT_APP_BACKEND_URL || 'http://localhost:8080' export { BACKEND_URL,