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: https://err.sh/next.js/no-cache
https://err.sh/next.js/no-cache
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
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!
That would be very nice to know. Setting cache directories like this doesn’t work.
"cacheDirectories": [
"node_modules/",
".next/cache/"
],
Is there a way to do it for DO? I opened an issue on Github about this subject: https://github.com/digitalocean/sample-nextjs/issues/15
Thanks!
Yes, this is really important because, in my case, build times are not so great, but in most cases only a few files actually changed. Did you manage to solve this in anyway?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.