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}`;