From 60c1e2004863b158854f43ec175e744f36f1e599 Mon Sep 17 00:00:00 2001 From: daluclemas Date: Fri, 21 Jun 2024 16:45:06 +0100 Subject: [PATCH] update env file --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 1f15fa7..3c7eeeb 100644 --- a/src/App.js +++ b/src/App.js @@ -25,7 +25,7 @@ function App() { useEffect(() => { // Check if the current protocol is HTTP - if (process.env.NODE_ENV === "production") { + if (process.env.REACT_APP_NODE_ENV === "production") { if (window.location.protocol === "http:") { // Redirect to the equivalent URL with HTTPS window.location.href = `https://${window.location.hostname}${window.location.pathname}`;