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"]