Added config const file for server

This commit is contained in:
Corbin Crutchley
2019-06-30 11:05:01 -07:00
parent 3091b4f893
commit bbf9d592bf
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@@ -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

View File

@@ -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,
},