From 927ee73be748a862ef05b4f53d77be1b83d00f50 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 16 Nov 2019 15:21:40 +0400 Subject: [PATCH] Add dotenv file loading --- .env.dist | 1 + components/helmet/index.js | 24 +++++++++++++----------- lib/gtag.js | 4 +--- next.config.js | 7 +++++++ package.json | 1 + yarn.lock | 5 +++++ 6 files changed, 28 insertions(+), 14 deletions(-) create mode 100644 .env.dist diff --git a/.env.dist b/.env.dist new file mode 100644 index 000000000..aa76df02a --- /dev/null +++ b/.env.dist @@ -0,0 +1 @@ +GA_SECRET= diff --git a/components/helmet/index.js b/components/helmet/index.js index 78a288924..fc158dfec 100644 --- a/components/helmet/index.js +++ b/components/helmet/index.js @@ -1,7 +1,5 @@ -const { PHASE_DEVELOPMENT_SERVER } = require('next/constants'); import NextHead from 'next/head'; import siteConfig from 'storage/site'; -import { GA_TRACKING_ID } from 'lib/gtag'; const prepareTitle = (givenTitle) => { givenTitle = givenTitle || siteConfig.title; @@ -56,15 +54,19 @@ const Helmet = (props) => ( { /* Global Site Tag (gtag.js) - Google Analytics */ } -