Skip to content

Commit

Permalink
feat(contributions): updated env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrubberg committed Oct 4, 2023
1 parent 262a9d5 commit 1ea9fce
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const path = require('path');

require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});

module.exports = {
siteMetadata: {
title: 'Carbon Design System',
Expand Down Expand Up @@ -73,13 +77,13 @@ module.exports = {
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: `AIRTABLE_CONTRIBUTION_API_KEY`,
apiKey: process.env.AIRTABLE_CONTRIBUTION_API_KEY,
concurrency: 5, // default, see using markdown and attachments for more information
tables: [
{
baseId: `AIRTABLE_CONTRIBUTION_BASEID`,
tableName: `AIRTABLE_CONTRIBUTION_TABLENAME`,
tableView: `AIRTABLE_CONTRIBUTION_TABLEVIEW`,
baseId: process.env.AIRTABLE_CONTRIBUTION_BASEID,
tableName: process.env.AIRTABLE_CONTRIBUTION_TABLENAME,
tableView: process.env.AIRTABLE_CONTRIBUTION_TABLEVIEW,
},
],
},
Expand Down

0 comments on commit 1ea9fce

Please sign in to comment.