From 8344aee4da1aefd61cf434e99564615b65b7036f Mon Sep 17 00:00:00 2001 From: Shea McKinney Date: Tue, 21 Nov 2023 14:01:59 -0800 Subject: [PATCH] NoJira: On demand revalidation only and no caching requests. --- app/(public)/[...slug]/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/(public)/[...slug]/page.tsx b/app/(public)/[...slug]/page.tsx index 2f64c851..3020a8a5 100644 --- a/app/(public)/[...slug]/page.tsx +++ b/app/(public)/[...slug]/page.tsx @@ -17,7 +17,9 @@ import {DrupalJsonApiParams} from "drupal-jsonapi-params"; import {isDraftMode} from "@/lib/drupal/is-draft-mode"; import UnpublishedBanner from "@/components/patterns/unpublished-banner"; -export const revalidate = 86400; +// Opt out of caching for all data requests in the route segment +export const dynamic = 'force-dynamic'; +export const revalidate = 0; class RedirectError extends Error { constructor(public message: string) {