fix: friendly syntax

This commit is contained in:
Ben Elferink
2021-10-27 19:31:01 +03:00
parent 8540360217
commit 1a841acaa2

View File

@@ -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,