Skip to content

Commit 755d789

Browse files
committed
Add GITHUB_TOKEN with DOCUSAURUS_GIT_TOKEN fallback
1 parent eb756c4 commit 755d789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const config: Config = {
269269

270270
// ✅ Add this customFields object to expose the token to the client-side
271271
customFields: {
272-
gitToken: process.env.DOCUSAURUS_GIT_TOKEN,
272+
gitToken: process.env.DOCUSAURUS_GIT_TOKEN || process.env.GITHUB_TOKEN,
273273
// Shopify credentials for merch store
274274
SHOPIFY_STORE_DOMAIN:
275275
process.env.SHOPIFY_STORE_DOMAIN || "junh9v-gw.myshopify.com",

0 commit comments

Comments
 (0)