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

Commit 3ee2293

Browse files
committed
chore: fix build
1 parent 9c82628 commit 3ee2293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphiql/graphiql.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default LandingLayout;
1919
<GraphiQL
2020
fetcher={
2121
createGraphiQLFetcher({
22-
url: window.location.origin + '/graphql',
22+
url: typeof window !== 'undefined' ? window.location.origin + '/graphql' : '',
2323
})}
2424
editorTheme={'dracula'}
2525
schema={buildSchema(rawSchema)}
26-
/>
26+
/>

0 commit comments

Comments
 (0)