Skip to content

Commit

Permalink
Fix hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
icaraps committed Aug 14, 2020
1 parent 2812b18 commit 22fad6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions example/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
* governing permissions and limitations under the License.
*/

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

const globalNav = require('@adobe/gatsby-theme-parliament/globalNav.json');

globalNav.menus = [globalNav.menus[1]];
Expand Down
6 changes: 5 additions & 1 deletion packages/gatsby-theme-parliament/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* governing permissions and limitations under the License.
*/

require('dotenv').config({
path: `.env`
});

module.exports = {
siteMetadata: {
globalNav: {
Expand Down Expand Up @@ -117,7 +121,7 @@ module.exports = {
{
resolve: `@adobe/gatsby-source-github-file-contributors`,
options: {
root: 'example',
root: process.env.ROOT,
repo: {
token: process.env.GITHUB_TOKEN,
owner: process.env.GITHUB_REPO_OWNER,
Expand Down

0 comments on commit 22fad6e

Please sign in to comment.