kopia lustrzana https://github.com/badgen/badgen.net
chore: Retrieve trackingGA from env (#109)
rodzic
132d61bb03
commit
fce389d3a3
|
|
@ -16,7 +16,7 @@ const serveMarkedOptions = {
|
||||||
p img + a { vertical-align: top; margin-left: 0.4em; font: 14px/20px monospace }
|
p img + a { vertical-align: top; margin-left: 0.4em; font: 14px/20px monospace }
|
||||||
`,
|
`,
|
||||||
beforeHeadEnd: `<link rel="icon" type="image/svg+xml" href="/favicon.svg">`,
|
beforeHeadEnd: `<link rel="icon" type="image/svg+xml" href="/favicon.svg">`,
|
||||||
trackingGA: 'UA-4646421-14'
|
trackingGA: process.env.TRACKING_GA || null
|
||||||
}
|
}
|
||||||
|
|
||||||
const docsFolder = path.join(__dirname, 'docs')
|
const docsFolder = path.join(__dirname, 'docs')
|
||||||
|
|
|
||||||
|
|
@ -68,5 +68,5 @@ module.exports = serveMarked('libs/index.md', {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
trackingGA: 'UA-4646421-14'
|
trackingGA: process.env.TRACKING_GA || null
|
||||||
})
|
})
|
||||||
|
|
|
||||||
3
now.json
3
now.json
|
|
@ -11,7 +11,8 @@
|
||||||
"libs"
|
"libs"
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"GH_TOKEN": "@badgen-gh-token"
|
"GH_TOKEN": "@badgen-gh-token",
|
||||||
|
"TRACKING_GA": "@badgen-tracking-ga"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^10.0.0"
|
"node": "^10.0.0"
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue