I’m building a static site with Next.js Static Site Generation. I’m not sure exactly what is causing it, but the build cache is getting slightly larger every build. I don’t want anything cached between builds. Is there a way to disable the build cache? Right now, I’m having to periodically manually clear the cache to prevent it from getting too big.
Hi there,
I’m not aware of a way to prevent NextJS from caching some of the output from next build
. The only workaround I know would be to append rm -rf .next/cache
to the end of your build command.
Regards,
Keith
Render Support, UTC+10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.