From ba1d991f6a42941f2bf0ea08c937a6f07a8093e4 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Thu, 14 Aug 2025 15:13:01 +0100 Subject: fix: update searchParams interface for Next.js 15 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change searchParams from object to Promise in HistoryPageProps - Await searchParams resolution in HistoryPage component - Fixes TypeScript compilation error during build process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/app/history/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/history/page.tsx b/frontend/app/history/page.tsx index 9ccba27..7af0a9e 100644 --- a/frontend/app/history/page.tsx +++ b/frontend/app/history/page.tsx @@ -2,14 +2,15 @@ import { Drive_log } from "@/lib/drive_server" import { HistoryView } from "@/components/history/HistoryView" interface HistoryPageProps { - searchParams: { [key: string]: string | string[] | undefined } + searchParams: Promise<{ [key: string]: string | string[] | undefined }> } export default async function HistoryPage({ searchParams }: HistoryPageProps) { const logEntries = await Drive_log() + const resolvedSearchParams = await searchParams // Parse page parameter (default to 0) - const page = parseInt((searchParams.page as string) || '0', 10) + const page = parseInt((resolvedSearchParams.page as string) || '0', 10) const pageSize = 50 // Sort by timestamp descending (most recent first) -- cgit