  import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client";
  import { registerApolloClient } from "@apollo/client-integration-nextjs";

  export const { getClient } = registerApolloClient(() => {
    return new ApolloClient({
      cache: new InMemoryCache(),
      link: new HttpLink({
        uri: "http://api:3000/graphql",
      }),
    });
  });