web: fetch some content

This commit is contained in:
2024-05-07 04:05:40 +02:00
parent 3fdb4b92a2
commit 5b9c484f14
6 changed files with 394 additions and 12 deletions

11
web/src/app/client.ts Normal file
View File

@ -0,0 +1,11 @@
import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client";
import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc";
export const { getClient } = registerApolloClient(() => {
return new ApolloClient({
cache: new InMemoryCache(),
link: new HttpLink({
uri: "https://cms.neuf.kult.444.no/api/graphql/",
}),
});
});