chore: Retrieve trackingGA from env (#109)

pull/115/head
Boris K 2018-08-13 16:43:23 +02:00 zatwierdzone przez Amio /
rodzic 132d61bb03
commit fce389d3a3
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ const serveMarkedOptions = {
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">`,
trackingGA: 'UA-4646421-14'
trackingGA: process.env.TRACKING_GA || null
}
const docsFolder = path.join(__dirname, 'docs')

Wyświetl plik

@ -68,5 +68,5 @@ module.exports = serveMarked('libs/index.md', {
</div>
</div>
`,
trackingGA: 'UA-4646421-14'
trackingGA: process.env.TRACKING_GA || null
})

Wyświetl plik

@ -11,7 +11,8 @@
"libs"
],
"env": {
"GH_TOKEN": "@badgen-gh-token"
"GH_TOKEN": "@badgen-gh-token",
"TRACKING_GA": "@badgen-tracking-ga"
},
"engines": {
"node": "^10.0.0"