Fix incorrect SSR mode.

This commit is contained in:
Jayden Seric 2020-09-11 23:03:04 +10:00
parent 97d904649a
commit 09f6834d30

View File

@ -5,7 +5,7 @@ import Head from 'next/head';
const createApolloClient = (cache = {}) =>
new ApolloClient({
ssrMode: typeof window !== 'undefined',
ssrMode: typeof window === 'undefined',
cache: new InMemoryCache().restore(cache),
link: createUploadLink({ uri: process.env.API_URI }),
});