From 3e9faa0c03847aa3251cb65db73cc1b5687d2532 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 27 Feb 2025 22:21:08 +0100 Subject: [PATCH] Signal schedule page is dynamic Without this the page pre-render is cached, and a hydration error is thrown when this cached pre-render doesn't match the JS rendered version. --- app/schedule/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/schedule/page.tsx b/app/schedule/page.tsx index 405335b..e0f7770 100644 --- a/app/schedule/page.tsx +++ b/app/schedule/page.tsx @@ -6,6 +6,8 @@ import { Events } from "@/ui/events"; import { Locations } from "@/ui/locations"; import { EventsEdit } from "@/ui/events-edit"; +export const dynamic = "force-dynamic"; + export default async function page() { const schedule: Schedule = JSON.parse(await readFile("schedule.json", "utf-8")); return (