diff --git a/docs/.vuepress/github/clientDynamicModules.js b/docs/.vuepress/github/clientDynamicModules.js index c1e842b..49731f7 100644 --- a/docs/.vuepress/github/clientDynamicModules.js +++ b/docs/.vuepress/github/clientDynamicModules.js @@ -31,11 +31,16 @@ async function getSponsors() { * Deploy previews don't have access to secrets. * Return early since we don't have a token. */ - if (process.env['DEPLOY_PREVIEW']) { + if ( + process.env['DEPLOY_PREVIEW'] && + parseInt(process.env['DEPLOY_PREVIEW']) + ) { console.log('Skipping sponsors because this is a deploy preview.') return [] } + console.log('Fetching sponsors...') + const query = ` { user(login: "sagalbot") {