nuxt / content

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

feat: top level `content/` directory in Nuxt 4 compatibility version #2649

Closed farnabaz closed 1 week ago

farnabaz commented 3 weeks ago

🔗 Linked issue

resolves #2635

❓ Type of change

📚 Description

Nuxt v4 improved directory structure. This PR changes the base directory for all content sources from srcDir/ into rootDir/. When you set future.compatibilityVersion = 4 in nuxt.config the module will look for content directory in root Dir instead of app/ directory.

These change does not affect current projects.

📝 Checklist

cloudflare-pages[bot] commented 3 weeks ago

Deploying nuxt-content with  Cloudflare Pages  Cloudflare Pages

Latest commit: c802ae5
Status: ✅  Deploy successful!
Preview URL: https://1dacadf1.nuxt-content-1il.pages.dev
Branch Preview URL: https://feat-top-level-content-dir.nuxt-content-1il.pages.dev

View logs