diff --git a/app/api/revalidate/route.tsx b/app/api/revalidate/route.tsx index dfc0d8ac..6e265867 100644 --- a/app/api/revalidate/route.tsx +++ b/app/api/revalidate/route.tsx @@ -1,18 +1,9 @@ import {NextRequest, NextResponse} from "next/server" -import {revalidateTag, unstable_cache as nextCache} from "next/cache" -import {getEntityFromPath} from "@lib/gql/gql-queries" +import {revalidateTag} from "next/cache" +import {getHomePagePath} from "@lib/gql/gql-queries" export const revalidate = 0 -export const getHomePagePath = nextCache( - async () => { - const {entity} = await getEntityFromPath("/") - return entity?.path - }, - [], - {tags: ["paths:/"]} -) - export const GET = async (request: NextRequest) => { const secret = request.nextUrl.searchParams.get("secret") if (secret !== process.env.DRUPAL_REVALIDATE_SECRET) diff --git a/app/layout.tsx b/app/layout.tsx index cadf7e23..34c194d4 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,6 +9,7 @@ import UserAnalytics from "@components/elements/user-analytics" import clsx from "clsx" import Editori11y from "@components/tools/editorially" import localFont from "next/font/local" +import Cookiebot from "@components/elements/cookiebot" const appleIcons: Icon[] = [60, 72, 76, 114, 120, 144, 152, 180].map(size => ({ url: `https://www-media.stanford.edu/assets/favicon/apple-touch-icon-${size}x${size}.png`, @@ -48,11 +49,12 @@ const RootLayout = ({children, modal}: {children: React.ReactNode; modal: React. return ( - - - {isDevMode && } - + + + + {isDevMode && } +