From 8a31ca01997276bf3c7f0c37d906fad1a68b0c32 Mon Sep 17 00:00:00 2001 From: "Nemo (Claude Code)" Date: Wed, 1 Apr 2026 04:39:54 +0000 Subject: [PATCH] fix: force-dynamic on recharts pages to prevent SSR static export failure --- app/(app)/accounting/reports/page.tsx | 3 +++ app/(app)/dashboard/page.tsx | 3 +++ app/(app)/reports/page.tsx | 3 +++ 3 files changed, 9 insertions(+) diff --git a/app/(app)/accounting/reports/page.tsx b/app/(app)/accounting/reports/page.tsx index 54f036e..b967bc5 100644 --- a/app/(app)/accounting/reports/page.tsx +++ b/app/(app)/accounting/reports/page.tsx @@ -1,4 +1,7 @@ "use client"; +export const dynamic = "force-dynamic"; + + import { useState } from "react"; import { useQuery } from "@tanstack/react-query"; diff --git a/app/(app)/dashboard/page.tsx b/app/(app)/dashboard/page.tsx index 2d4bf57..d7d772f 100644 --- a/app/(app)/dashboard/page.tsx +++ b/app/(app)/dashboard/page.tsx @@ -1,4 +1,7 @@ "use client"; +export const dynamic = "force-dynamic"; + + import { useQuery, useMutation } from "@tanstack/react-query"; import { useRouter } from "next/navigation"; diff --git a/app/(app)/reports/page.tsx b/app/(app)/reports/page.tsx index 9278622..7d2eb95 100644 --- a/app/(app)/reports/page.tsx +++ b/app/(app)/reports/page.tsx @@ -1,4 +1,7 @@ "use client"; +export const dynamic = "force-dynamic"; + + import { useState } from "react"; import { useQuery } from "@tanstack/react-query"; -- 2.43.0