Skip to content

Commit

Permalink
Merge pull request #49 from MeetYourAI/yosh
Browse files Browse the repository at this point in the history
added env variable to access token for traffic
  • Loading branch information
yoshinodev authored Sep 17, 2023
2 parents 3672af2 + 539ec4c commit 3b55576
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ <h5 class="info-title">Flexible Schedule</h5>
<div class="content-block">
<div class="row">
<div id="trafficChart">

</div>
</div>
</div>
Expand Down Expand Up @@ -1209,8 +1209,9 @@ <h2 class=" footer-col-title">contact information</h2>
</script>
<script>
const repoName = 'AIProf'; // repository name
const accessToken = 'AIProfTraffic'; // access token
const apiUrl = `https://api.github.com/meetyourai/${repoName}/traffic/views`;
//env variable for github access token
const accessToken = process.env.GH_ACCESS_TOKEN; // GitHub access token
const apiUrl = `https://api.github.com/repos/MeetYourAI/${repoName}/traffic/views`;

// GitHub API headers with your access token
const headers = {
Expand Down

0 comments on commit 3b55576

Please sign in to comment.