From ffd544f101a45854e400698712148dd77a58e201 Mon Sep 17 00:00:00 2001 From: Jeff Sagal Date: Sat, 17 Dec 2022 12:20:32 -0800 Subject: [PATCH] build(1733): parse deploy preview env int (#1734) --- docs/.vuepress/github/clientDynamicModules.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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") {