Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Feb 21, 2022
1 parent 9c82628 commit 322e683
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions graphiql/graphiql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ export default LandingLayout;

<GraphiQL
fetcher={
createGraphiQLFetcher({
url: window.location.origin + '/graphql',
})}
editorTheme={'dracula'}
typeof window !== "undefined"
? createGraphiQLFetcher({
url: "http://swapi.apis.guru/graphql",
})
: function () {
/* nope */
}
}
editorTheme={"dracula"}
schema={buildSchema(rawSchema)}
/>
/>

0 comments on commit 322e683

Please sign in to comment.