NextJS static build output cache not supported in build system v2?

When switching to Cloudflare Pages Build System v2, I’m getting a message at the end of a build log “Skipping build output cache as it’s not supported for your project”. Our project is a NextJS static build, and Cloudflare docs say .next/cache is supported. NextJS docs say cache is set there by default. Am I missing something?

1 Like

Hi @engineering-services,

Please note that “Skipping build output cache as it’s not supported for your project” is a warning, not an error. It means that either Cloudflare didn’t find next as a dependency or the .next/cache directory didn’t exist.

Thanks, I do understand this is just a warning, but I would like to utilize the build output cache to speed up build time.

Can you help me with why Cloudflare wouldn’t find next as a dependency, or .next/cache which is output by default?

1 Like