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

Commit c3e1eed

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

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

graphiql/graphiql.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ export default LandingLayout;
1818

1919
<GraphiQL
2020
fetcher={
21-
createGraphiQLFetcher({
22-
url: window.location.origin + '/graphql',
23-
})}
21+
typeof window !== "undefined"
22+
? createGraphiQLFetcher({
23+
url: window.location.origin + "/graphql",
24+
})
25+
: undefined
26+
}
2427
editorTheme={'dracula'}
2528
schema={buildSchema(rawSchema)}
26-
/>
29+
/>

0 commit comments

Comments
 (0)