From 74ea5de372ff7ac611e16a8991829350433ad20c Mon Sep 17 00:00:00 2001 From: Adam Cohen Hillel Date: Fri, 18 Apr 2025 00:13:50 +0100 Subject: [PATCH] try this --- .../app/dashboard/(personalAccount)/config.ts | 17 +++++++++++++++++ frontend/src/app/dashboard/config.ts | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 frontend/src/app/dashboard/(personalAccount)/config.ts create mode 100644 frontend/src/app/dashboard/config.ts diff --git a/frontend/src/app/dashboard/(personalAccount)/config.ts b/frontend/src/app/dashboard/(personalAccount)/config.ts new file mode 100644 index 00000000..25182d28 --- /dev/null +++ b/frontend/src/app/dashboard/(personalAccount)/config.ts @@ -0,0 +1,17 @@ +// This file configures Next.js options for the personalAccount route group +// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config + +// Disable static rendering completely for all personalAccount routes +export const dynamic = 'force-dynamic'; + +// Disable static generation for all routes under this group +export const generateStaticParams = () => { + return []; +}; + +// Disable optimization attempts +export const preferredRegion = 'auto'; +export const revalidate = 0; + +// Dynamically generate dynamic params +export const dynamicParams = true; \ No newline at end of file diff --git a/frontend/src/app/dashboard/config.ts b/frontend/src/app/dashboard/config.ts new file mode 100644 index 00000000..645c77b5 --- /dev/null +++ b/frontend/src/app/dashboard/config.ts @@ -0,0 +1,17 @@ +// This file configures Next.js options for the entire dashboard route group +// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config + +// Disable static rendering completely for all dashboard routes +export const dynamic = 'force-dynamic'; + +// Disable static generation for all routes under dashboard +export const generateStaticParams = () => { + return []; +}; + +// Disable optimization attempts +export const preferredRegion = 'auto'; +export const revalidate = 0; + +// Dynamically generate dynamic params +export const dynamicParams = true; \ No newline at end of file