Skip to content

Commit

Permalink
feature: add env github user
Browse files Browse the repository at this point in the history
  • Loading branch information
ldiego73 committed Jun 15, 2020
1 parent 8f45e52 commit 7ec87c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
GATSBY_RECAPTCHA_KEY="6Lfnot0SAAAAAH_Yk4ZMOSxeMkmgMO67MZKNroEs"
GATSBY_GITHUB_USER=ldiego73
2 changes: 1 addition & 1 deletion src/screens/home/components/repos/repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Repository } from "@components/repository"
import axios from "axios"
import React, { useEffect, useState } from "react"

export const URL = "https://api.github.com/users/ldiego73/repos?per_page=100"
export const URL = `https://api.github.com/users/${process.env.GATSBY_GITHUB_USER}/repos?per_page=100`

const Repos = () => {
const [repos, setRepos] = useState(null)
Expand Down

0 comments on commit 7ec87c0

Please sign in to comment.