Skip to content

Commit 13d8fe6

Browse files
committed
well process.env is just not a thing in frontend javascripts
1 parent 4547221 commit 13d8fe6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

javascripts/explorer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const explorerUrl = process.env.NODE_ENV === 'production'
2-
? 'https://graphql.github.com/explorer'
3-
: 'http://localhost:3000'
1+
const explorerUrl = location.hostname === 'localhost'
2+
? 'http://localhost:3000'
3+
: 'https://graphql.github.com/explorer'
44

55
// Pass non-search query params to Explorer app via the iFrame
66
export default function () {

0 commit comments

Comments
 (0)