Fix params/searchParams types for Next.js app router

This commit is contained in:
Enguerrand Ozano
2026-02-28 19:49:30 +01:00
parent 7f7a2f4edd
commit 7651a45586

View File

@@ -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);