]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/config/apollo.ts
Start migration to supabase
[rbdr/forum] / src / lib / config / apollo.ts
index a3820ed70355cc24a896c55e759874601c019865..a8b27efd6e7a0df23cf13fb0471a8f058b8bcead 100644 (file)
@@ -5,10 +5,13 @@ import { apollo as apolloConfig } from './config';
 const cache = new InMemoryCache();
 
 export const client = new ApolloClient({
-  cache,
-  link: new HttpLink({
-    uri: apolloConfig.uri,
-    fetch
-  }),
-  ...apolloConfig
+       cache,
+       link: new HttpLink({
+               uri: apolloConfig.uri,
+    headers: {
+      apiKey: apolloConfig.key
+    },
+               fetch
+       }),
+       ...apolloConfig
 });