mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 04:21:55 +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
|
||||
# Yarn Integrity file
|
||||
.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 = {
|
||||
siteMetadata: {
|
||||
title: `Unicorn Utterances`,
|
||||
@@ -88,7 +91,7 @@ module.exports = {
|
||||
{
|
||||
resolve: `gatsby-plugin-google-analytics`,
|
||||
options: {
|
||||
trackingId: `TRACKING ID HERE`,
|
||||
trackingId: CONSTS.googleAnalytics || '',
|
||||
head: false,
|
||||
respectDNT: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user