Skip to content

Commit ffd544f

Browse files
authored
build(1733): parse deploy preview env int (#1734)
1 parent 31a9a5b commit ffd544f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/.vuepress/github/clientDynamicModules.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ async function getSponsors() {
3131
* Deploy previews don't have access to secrets.
3232
* Return early since we don't have a token.
3333
*/
34-
if (process.env['DEPLOY_PREVIEW']) {
34+
if (
35+
process.env['DEPLOY_PREVIEW'] &&
36+
parseInt(process.env['DEPLOY_PREVIEW'])
37+
) {
3538
console.log('Skipping sponsors because this is a deploy preview.')
3639
return []
3740
}
3841

42+
console.log('Fetching sponsors...')
43+
3944
const query = `
4045
{
4146
user(login: "sagalbot") {

0 commit comments

Comments
 (0)