diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js index dbbec6fb..b1fc197e 100644 --- a/documentation/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -360,7 +360,7 @@ const siteConfig = { }, customFields: { // Put your custom environment here - AccessKey: process.env.REACT_APP_FOLLOWERS_ACCESS_KEY, + REACT_APP_FOLLOWERS_ACCESS_KEY: process.env.REACT_APP_FOLLOWERS_ACCESS_KEY, /** Footer Fields */ footerDescription: '', contactTitle: "Contact", diff --git a/documentation/src/context/CommunityStats/index.tsx b/documentation/src/context/CommunityStats/index.tsx index bc99be02..ef4ecb73 100644 --- a/documentation/src/context/CommunityStats/index.tsx +++ b/documentation/src/context/CommunityStats/index.tsx @@ -37,7 +37,7 @@ export const CommunityStatsContext = createContext< export const CommunityStatsProvider: FC = ({ children }) => { const { siteConfig } = useDocusaurusContext(); - const followersAccessKey = siteConfig.customFields.AccessKey; + const followersAccessKey = siteConfig.customFields.REACT_APP_FOLLOWERS_ACCESS_KEY; console.log('AccessKey:', followersAccessKey); const [loading, setLoading] = useState(true); const [githubStarCount, setGithubStarCount] = useState(0);