nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.08k stars 624 forks source link

fix: enable cache only for clientDb #2425

Closed Barbapapazes closed 9 months ago

Barbapapazes commented 10 months ago

🔗 Linked issue

fix #2415

❓ Type of change

📚 Description

Enable the /api/cache.json endpoint only for the clientDb feature. Otherwise, it's unnecessary and can be a real pain (build perf and deployment) for huge website.

📝 Checklist

farnabaz commented 9 months ago

Disabling it has side effect. What we can do for now is to add a flag to disable it. In next major version, this behavior will change, and we will remove this big chunk.