From 16b05fbfa0aca9cced999e06bc195da5bb23b16b Mon Sep 17 00:00:00 2001 From: Akash Singh Date: Fri, 5 Apr 2024 02:10:03 +0530 Subject: [PATCH] Set env Data --- documentation/src/context/CommunityStats/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/documentation/src/context/CommunityStats/index.tsx b/documentation/src/context/CommunityStats/index.tsx index a1dad3f..3130730 100644 --- a/documentation/src/context/CommunityStats/index.tsx +++ b/documentation/src/context/CommunityStats/index.tsx @@ -37,8 +37,9 @@ export const CommunityStatsContext = createContext< >(undefined); export const CommunityStatsProvider: FC = ({ children }) => { - const { siteConfig } = useDocusaurusContext(); - const followersAccessKey = siteConfig.customFields.REACT_APP_FOLLOWERS_ACCESS_KEY; + // const { siteConfig } = useDocusaurusContext(); + // const followersAccessKey = siteConfig.customFields.REACT_APP_FOLLOWERS_ACCESS_KEY; + const followersAccessKey = process.env.REACT_APP_FOLLOWERS_ACCESS_KEY; console.log(followersAccessKey); const [loading, setLoading] = useState(true); const [githubStarCount, setGithubStarCount] = useState(0);