We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.0-alpha.6
https://codesandbox.io/p/devbox/brave-bogdan-8myc2y?workspaceId=11463712-f2b6-4ff2-abfc-9afdf4b3cb02
When I place custom field in the front matter:
--- title: Example article image: /images/products/test.jpeg ---
define schema for it (like recommanded in the docs):
products: defineCollection({ type: 'page', source: 'products/*.md', schema: z.object({ image: z.string(), }), }),
Typing tells me the field is on the object root:
But it actually is accesible in the meta subobject:
meta.image: /images/products/test.jpeg image:
Even if typing does not expect it there:
The text was updated successfully, but these errors were encountered:
This is related to cached data in .data/content directory. The next version will respect collection changes and will clear cache automatically.
.data/content
But for now in alpha.6 you can remove .data/content directory in your project and restart Nuxt to force a re-index. This will solve the issue.
Sorry, something went wrong.
No branches or pull requests
Environment
Version
3.0.0-alpha.6
Reproduction
https://codesandbox.io/p/devbox/brave-bogdan-8myc2y?workspaceId=11463712-f2b6-4ff2-abfc-9afdf4b3cb02
Description
When I place custom field in the front matter:
define schema for it (like recommanded in the docs):
Typing tells me the field is on the object root:
But it actually is accesible in the meta subobject:
Even if typing does not expect it there:
The text was updated successfully, but these errors were encountered: