2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-29 05:14:04 +03:00

docs(1731): remove GA & allow deploy previews (#1732)

This commit is contained in:
Jeff Sagal
2022-12-16 11:21:58 -08:00
committed by GitHub
parent 709905da27
commit c886fcfc67
4 changed files with 10 additions and 13 deletions
@@ -27,6 +27,15 @@ async function getContributors() {
* @return {Promise<*[]|ProfileNode[]|postcss.ChildNode[]|Array<parser.Node>|[]>}
*/
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']) {
console.log('Skipping sponsors because this is a deploy preview.')
return []
}
const query = `
{
user(login: "sagalbot") {