Skip to content

Commit eada57d

Browse files
committed
chore: udpate CI condition
1 parent 227c4df commit eada57d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utilities/fetch-supporters.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ const getAllNodes = async (graphqlQuery, getNodes) => {
9595
// Store original value
9696
const originalTlsRejectUnauthorized =
9797
process.env.NODE_TLS_REJECT_UNAUTHORIZED;
98+
const isCI = process.env.CI === 'true' || (process.env.CI && process.env.VERCEL);
9899

99100
try {
100101
// Only disable SSL verification in local development
101-
if (process.env.CI !== 'true') {
102+
if (!isCI) {
102103
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
103104
console.log('Running locally - SSL verification disabled');
104105
}
@@ -190,7 +191,7 @@ const getAllNodes = async (graphqlQuery, getNodes) => {
190191
}
191192
} finally {
192193
// Only restore if we modified it
193-
if (process.env.CI !== 'true') {
194+
if (!isCI) {
194195
process.env.NODE_TLS_REJECT_UNAUTHORIZED = originalTlsRejectUnauthorized;
195196
}
196197
}

0 commit comments

Comments
 (0)