Report this

What is the reason for this report?

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!

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.

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!

Very important question.

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?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.