nuxt / content

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

fix: enable cache only for clientDb #2425

Closed Barbapapazes closed 11 months ago

Barbapapazes commented 1 year 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 11 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.