From 9d35892c9208f68996d9143dcec2ba39d29affed Mon Sep 17 00:00:00 2001 From: Afsha10 Date: Tue, 7 Nov 2023 12:37:38 +0000 Subject: [PATCH] Update config.js with the new render backend URL * Update config.js with the new render backend URL which is connected with my elephantSQL --- client/src/config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/config.js b/client/src/config.js index 169ccf109b..e575ae92e9 100644 --- a/client/src/config.js +++ b/client/src/config.js @@ -1,3 +1,4 @@ -export const baseUrl = "https://afsha-full-stack-video-storage-app.onrender.com"; // prod - -// export const baseUrl = "http://localhost:5000"; //dev +export const baseUrl = + process.env.NODE_ENV === "production" + ? "https://video-storage.onrender.com" + : "http://localhost:5000";