From 1a841acaa26c94055b19120253640e7c11c6c6e6 Mon Sep 17 00:00:00 2001 From: Ben Elferink Date: Wed, 27 Oct 2021 19:31:01 +0300 Subject: [PATCH] fix: friendly syntax --- client/src/constants/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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,