Skip to content

Commit

Permalink
Setup ENV Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash Singh committed Mar 15, 2024
1 parent 30ecd84 commit c2e91ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion documentation/src/context/CommunityStats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2e91ee

Please sign in to comment.