From 7651a455862a367c26c371d76a05069519192765 Mon Sep 17 00:00:00 2001 From: Enguerrand Ozano Date: Sat, 28 Feb 2026 19:49:30 +0100 Subject: [PATCH] Fix params/searchParams types for Next.js app router --- next.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index f2270a7..1fe6c42 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,4 +1,5 @@ import type { NextConfig } from "next"; +import { withPayload } from "@payloadcms/next/withPayload"; const nextConfig: NextConfig = { // Force clean dist dir on every build — évite les routes orphelines dans le cache @@ -8,4 +9,4 @@ const nextConfig: NextConfig = { }, }; -export default nextConfig; +export default withPayload(nextConfig);