diff --git a/src/api/environment.ts b/src/api/environment.ts index 992bc13..041920f 100644 --- a/src/api/environment.ts +++ b/src/api/environment.ts @@ -27,6 +27,8 @@ export const swEnvVariables = { discordBotAddress: "VITE_DISCORD_BOT_ADDRESS", discordBotUrl: "VITE_DISCORD_BOT_API_URL", + hubShowcaseUrl: "VITE_HUB_SHOWCASE_URL", + twitterClientId: "VITE_TWITTER_CLIENT_ID", githubClientId: "VITE_GITHUB_CLIENT_ID" }; diff --git a/src/pages/TaskManager/SocialVerificationCard.tsx b/src/pages/TaskManager/SocialVerificationCard.tsx index 865c465..4a2b390 100644 --- a/src/pages/TaskManager/SocialVerificationCard.tsx +++ b/src/pages/TaskManager/SocialVerificationCard.tsx @@ -1,3 +1,4 @@ +import { environment } from "@api/environment"; import { AutOsButton } from "@components/buttons"; import { Box, Stack, Typography } from "@mui/material"; import { HubData } from "@store/Hub/hub.reducer"; @@ -62,7 +63,7 @@ export const SocialVerificationCard = ({ socialType }) => { { - window.open(`http://localhost:3001/project/${hubData.name}`, '_blank'); + window.open(`${environment.hubShowcaseUrl}/project/${hubData.name}`, '_blank'); }} variant="outlined" sx={{ mt: "auto" }}