Fix params/searchParams types for Next.js app router
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
import { withPayload } from "@payloadcms/next/withPayload";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
// Force clean dist dir on every build — évite les routes orphelines dans le cache
|
// 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user