Support custom caching for builds
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"]
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.