From fa4642e7344e9b0666cb6f28b8228452a4ae817a Mon Sep 17 00:00:00 2001 From: amalv <1252707+amalv@users.noreply.github.com> Date: Tue, 26 Dec 2023 12:46:36 +0100 Subject: [PATCH] fix: refactor redirect URI in App component --- src/App.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9b9e420..87756fd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,14 +13,17 @@ const App = () => { }, }); - console.log("Redirect URI: ", window.location.origin); + const isProduction = process.env.NODE_ENV === "production"; + const redirectUri = isProduction + ? `${window.location.origin}/bukie` + : window.location.origin; return (