mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
build(1733): parse deploy preview env int (#1734)
This commit is contained in:
@@ -31,11 +31,16 @@ async function getSponsors() {
|
|||||||
* Deploy previews don't have access to secrets.
|
* Deploy previews don't have access to secrets.
|
||||||
* Return early since we don't have a token.
|
* 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.')
|
console.log('Skipping sponsors because this is a deploy preview.')
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('Fetching sponsors...')
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
{
|
{
|
||||||
user(login: "sagalbot") {
|
user(login: "sagalbot") {
|
||||||
|
|||||||
Reference in New Issue
Block a user