From 1930269da9f9b388cff4751e33a320689faac962 Mon Sep 17 00:00:00 2001 From: Achal <106076516+slusy@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:03:51 +0530 Subject: [PATCH] feat(dashboard): add dynamic redirect to navbar logo add dynamic redirect to navbar logo, which was previously leading to the production dashboard in all environments --- apps/dashboard/.env.local | 1 + apps/dashboard/.env.production | 1 + apps/dashboard/.env.staging | 1 + apps/dashboard/src/components/navbar.tsx | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/.env.local b/apps/dashboard/.env.local index 4911b858..72852f15 100644 --- a/apps/dashboard/.env.local +++ b/apps/dashboard/.env.local @@ -7,3 +7,4 @@ VITE_ETHEREUM_NETWORK=sepolia VITE_GITHUB_CLIENT_ID=a83a8b014ef38270fb22 VITE_TWITTER_CLIENT_ID=SUw4TUFiZGJaSXh2ak1YRkx3TFQ6MTpjaQ VITE_TWITTER_REDIRECT_URI=http://localhost:3001/credentials +VITE_DASHBOARD_URL=http://localhost:3001/ diff --git a/apps/dashboard/.env.production b/apps/dashboard/.env.production index 2e458ee6..82a0b9a5 100644 --- a/apps/dashboard/.env.production +++ b/apps/dashboard/.env.production @@ -7,3 +7,4 @@ VITE_ETHEREUM_NETWORK=sepolia VITE_GITHUB_CLIENT_ID=6ccd7b93e84260e353f9 VITE_TWITTER_CLIENT_ID=SUw4TUFiZGJaSXh2ak1YRkx3TFQ6MTpjaQ VITE_TWITTER_REDIRECT_URI=https://app.bandada.pse.dev/credentials +VITE_DASHBOARD_URL=https://app.bandada.pse.dev/ diff --git a/apps/dashboard/.env.staging b/apps/dashboard/.env.staging index b14f8b4e..0a3285d6 100644 --- a/apps/dashboard/.env.staging +++ b/apps/dashboard/.env.staging @@ -7,3 +7,4 @@ VITE_ETHEREUM_NETWORK=sepolia VITE_GITHUB_CLIENT_ID=6ccd7b93e84260e353f9 VITE_TWITTER_CLIENT_ID=SUw4TUFiZGJaSXh2ak1YRkx3TFQ6MTpjaQ VITE_TWITTER_REDIRECT_URI=https://app-staging.bandada.pse.dev/credentials +VITE_DASHBOARD_URL=https://app-staging.bandada.pse.dev/ diff --git a/apps/dashboard/src/components/navbar.tsx b/apps/dashboard/src/components/navbar.tsx index 003a03dc..065bc4da 100644 --- a/apps/dashboard/src/components/navbar.tsx +++ b/apps/dashboard/src/components/navbar.tsx @@ -37,7 +37,7 @@ export default function NavBar(): JSX.Element { backgroundRepeat="no-repeat" backgroundSize="450px" > - +