diff --git a/frontend/src/lib/ApolloClient.js b/frontend/src/lib/ApolloClient.js index 8e07292..e56aa2e 100644 --- a/frontend/src/lib/ApolloClient.js +++ b/frontend/src/lib/ApolloClient.js @@ -1,14 +1,14 @@ import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client"; import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc"; -const OUTSIDE_STRAPI_URL = process.env.OUTSIDE_STRAPI_URL; +const INTERNAL_STRAPI_URL = process.env.INTERNAL_STRAPI_URL; export const { getClient } = registerApolloClient(() => { return new ApolloClient({ cache: new InMemoryCache(), link: new HttpLink({ // this needs to be an absolute url, as relative urls cannot be used in SSR - uri: OUTSIDE_STRAPI_URL + "/graphql", + uri: INTERNAL_STRAPI_URL + "/graphql", // you can disable result caching here if you want to // (this does not work if you are rendering your page with `export const dynamic = "force-static"`) fetchOptions: { cache: "no-store" },