mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-09 21:07:49 +00:00
Added config const file for server
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -67,3 +67,6 @@ yarn-error.log
|
|||||||
.pnp.js
|
.pnp.js
|
||||||
# Yarn Integrity file
|
# Yarn Integrity file
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
|
# Gatsby config consts for the server
|
||||||
|
/config/gatsby-config-consts.js
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
let CONSTS = require('./config/gatsby-config-consts');
|
||||||
|
if (!CONSTS) CONSTS = {};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
title: `Unicorn Utterances`,
|
title: `Unicorn Utterances`,
|
||||||
@@ -88,7 +91,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
resolve: `gatsby-plugin-google-analytics`,
|
resolve: `gatsby-plugin-google-analytics`,
|
||||||
options: {
|
options: {
|
||||||
trackingId: `TRACKING ID HERE`,
|
trackingId: CONSTS.googleAnalytics || '',
|
||||||
head: false,
|
head: false,
|
||||||
respectDNT: true,
|
respectDNT: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user