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