From dd5e594dc9d3799e7c9aa4e852e871dec599ccef Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Fri, 3 Jul 2020 21:04:43 +0530 Subject: [PATCH] - code cleanup and security checks --- gatsby-config.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index eebf8d74..05da31c5 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,8 +1,4 @@ -/** - * Configure your Gatsby site with this file. - * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ - */ +require("dotenv").config(); module.exports = { plugins: [ @@ -44,14 +40,14 @@ module.exports = { resolve: "gatsby-plugin-firebase", options: { credentials: { - apiKey: "AIzaSyCfC075KJNwsMWDTm6k8QCtWno48okM7wY", - authDomain: "rx-resume.firebaseapp.com", - databaseURL: "https://rx-resume.firebaseio.com", - projectId: "rx-resume", - storageBucket: "rx-resume.appspot.com", - messagingSenderId: "493152774539", - appId: "1:493152774539:web:ecaa1222f5e1bcf8fb678e", - measurementId: "G-83G3Y6DPJ6", + apiKey: process.env.FIREBASE_APIKEY, + authDomain: process.env.FIREBASE_AUTHDOMAIN, + databaseURL: process.env.FIREBASE_DATABASEURL, + projectId: process.env.FIREBASE_PROJECTID, + storageBucket: process.env.FIREBASE_STORAGEBUCKET, + messagingSenderId: process.env.FIREBASE_MESSAGINGSENDERID, + appId: process.env.FIREBASE_APPID, + measurementId: process.env.FIREBASE_MEASUREMENTID, }, }, },