mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
docs(1731): remove GA & allow deploy previews (#1732)
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
const isDeployPreview = require('./isDeployPreview')
|
||||
|
||||
module.exports = [
|
||||
[
|
||||
'@vuepress/google-analytics',
|
||||
{
|
||||
ga: isDeployPreview ? '' : 'UA-12818324-8',
|
||||
},
|
||||
],
|
||||
[
|
||||
'@vuepress/pwa',
|
||||
{
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user