Skip to content

Commit f67d384

Browse files
committed
fix: point to correct graphql
1 parent 228dd23 commit f67d384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<meta name="description" content="Pokeapi GraphiQL" />
1515
<script>
1616
window.__env = {
17-
graphqlEndpoint: 'http://localhost/graphql/v1beta',
17+
graphqlEndpoint: window.location.protocol + '//' + window.location.hostname + '/graphql/v1beta',
1818
headers: '',
1919
variables: '',
2020
query: 'doesnt work'

0 commit comments

Comments
 (0)