How to set build cache

I am running a next.js application on the DO app platform and I receive this error in the console during build:

No build cache found. Please configure build caching for faster rebuilds. Read more:

So I follow the link and I see ways to configure a build cache for all of these other platforms but not for DO apps. I searched DO docs and tried to find an answer to where I can declare a cache folder but did not find anything.

I also did not see any configuration to set this up in the App-Spec.yaml file. Am I missing something or is this not possible?

Thank you

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Very important question.

That would be very nice to know. Setting cache directories like this doesn’t work.

  "cacheDirectories": [

Is there a way to do it for DO? I opened an issue on Github about this subject: