Support custom caching for builds
complete
Emre
DO App Patform doesn't seem to support a way to define folders that can be persisted across builds.
A use case:
Next.js has a .next/.cache folder that's recommended to be persisted across builds.
In Heroku, you can define this in config as such: "cacheDirectories": [".next/cache"]
W
Whitney Jutzin
complete
Thank you so much for reaching out to us and sharing this request. Custom caching is now released. Here's more information on getting started: https://docs.digitalocean.com/products/app-platform/#14-november-2024 If you experience any issues, please reach out to our support team: https://cloudsupport.digitalocean.com/s/ Thank you again for taking the time to share this request with us and we hope you'll continue to let us know how else we can support your goals.
Daman Singh
DO App platform now supports custom-caching 🎉
eflyer infrastructure
Any updates on this?
Caching build directories for NextJS will be a huge increase in build times.
Andréas Hanss
Any update on this ?
Floris Meininger
Yes please, need this!
a
abdhass
Would love this feature please! it would speed up build times tremoundsely
Tomáš Livora
We would also need this feature. Our builds are often failing because we use Prisma ORM which generates client library based on schema file in
postinstall
hook and puts it into node_modules
folder. However, it looks like no such hook is executed in buildpacks unless yarn.lock
file changes. It would be nice if we were able to configure which files should be watched for changes when deciding whether to use cache or not.