From ab6a0aa6c4300239ce53385119216efa996d564f Mon Sep 17 00:00:00 2001 From: "Florian Amette (F4K)" <50982737+florianamette@users.noreply.github.com> Date: Mon, 23 Nov 2026 15:28:08 -0500 Subject: [PATCH] fix(events): stop Turbopack tracing the whole project from the event loader `path.join(process.cwd(), "data/events")` made Turbopack trace every file in the project ("Dynamic filesystem access causes tracing of the whole project"). Mark it `turbopackIgnore`: the dataset is only read at build time, since all event pages are statically generated. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01E7SxC2W368CjNq9H2oNu2x --- lib/events/load.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/events/load.ts b/lib/events/load.ts index b1ab3d8..e8d4afa 100644 --- a/lib/events/load.ts +++ b/lib/events/load.ts @@ -13,7 +13,11 @@ import { type EventTranslation, } from "./types"; -export const EVENTS_DIR = path.join(process.cwd(), "data/events"); +// `turbopackIgnore` stops Turbopack from tracing the whole project from this +// dynamic fs access. The data is only read at build time (every events page +// is statically generated); if a route ever reads it at runtime, add +// "./data/events/**" to outputFileTracingIncludes in next.config.ts. +export const EVENTS_DIR = path.join(/* turbopackIgnore: true */ process.cwd(), "data/events"); const FILE_RE = /^(\d+)(?:\.([a-z]{2}))?\.yaml$/;