Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): provide defineContentConfig utility #2891

Merged
merged 3 commits into from
Dec 9, 2024
Merged

Conversation

ineshbose
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This is NOT a breaking change.

Devs can still use export const collection (as c12 will fallback non-default export). However, in consistency with other .config files that tend to use default export and providing type-safety, having defineContentConfig would be nice.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

pkg-pr-new bot commented Dec 6, 2024

npm i https://pkg.pr.new/@nuxt/content@2891

commit: 6f8e257

@ineshbose
Copy link
Member Author

Note: I've just added ability to use defineContentConfig without needing to import, but it may be a bit experimental. Let me know if you want to exclude from this PR for now.

Copy link
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM πŸ‘

Thanks

@farnabaz farnabaz merged commit cf85cd4 into nuxt:v3 Dec 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants