Skip to content

Commit aebc2f3

Browse files
committed
api_base change
1 parent f4cde5e commit aebc2f3

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ function App() {
1010
return (
1111
<div className="App">
1212
<Router>
13-
<Analytics id={window.GA_CODE} trackPathnameOnly>
13+
<Analytics id={window.GA_CODE} trackPathnameOnly debug>
1414
<Switch>
1515
<Route path="/" exact component={LandingPage} />
1616
<Route path="/:username" exact component={Home} />
1717
</Switch>
1818
</Analytics>
19-
</Router>
19+
</Router>
2020
</div>
2121
);
2222
}

src/Components/Views/Pinned.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const Pinned = (props) => {
44

55
// deprecated api
66
// const repoData = props.pinnedRepos.data.user.pinnedRepositories.nodes
7-
7+
88
const repoData = props.pinnedRepos.data.user.itemShowcase.items.nodes
99
//HTML VIEW JSX DATA BIND
1010
let pinned_view = repoData.map((repo) =>

src/config/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
// const API_BASE_URL_PROD = "https://gitstats-api-prod.herokuapp.com/";
22
const API_BASE_URL_PROD = "https://api.gitstats.me/";
33
const API_BASE_URL_DEV = "https://gitstats-api-stage.herokuapp.com/";
4-
54
const API_BASE_URL= process.env.NODE_ENV === 'production' ? API_BASE_URL_PROD : API_BASE_URL_DEV;
6-
7-
85
const SENTRY_URL="https://f32dcf786d96407dae5c787a38d5b88d@o380288.ingest.sentry.io/5209222";
96
const GA_CODE="UA-132223767-1"
7+
const NODE_ENV=process.env.NODE_ENV
108
export default {
119
API_BASE_URL_PROD,
1210
API_BASE_URL_DEV,
1311
API_BASE_URL,
1412
SENTRY_URL,
15-
GA_CODE
13+
GA_CODE,
14+
NODE_ENV
1615
}

0 commit comments

Comments
 (0)