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