How to set build cache

Posted February 3, 2021 1.9k views
CachingDigitalOcean App PlatformBuilding on DigitalOceanNext.js

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

edited by bobbyiliev

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.

Submit an Answer
1 answer

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: