I get the error below:
Reading at https://nextjs.org/docs/app/api-reference/config/next-config-js/output#caveats, about outputFileTracingExcludes
. I have add the code below in next.config.ts
:
const nextConfig: NextConfig = { ..., outputFileTracingExcludes: { "/api/docs": ["./.next/cache/**/*"] }, .... };
Then the project working right, my nextjs version is 15.1.6
, you can check my config at my project. Hope this help everyone.