Skip to content

feat: first-party comark-content support - #321

Open
harlan-zw wants to merge 1 commit into
mainfrom
feat/comark-content-support
Open

feat: first-party comark-content support#321
harlan-zw wants to merge 1 commit into
mainfrom
feat/comark-content-support

Conversation

@harlan-zw

@harlan-zw harlan-zw commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

❓ Type of change

  • ✨ New feature (a non-breaking change that adds functionality)

📚 Description

The Nuxt Content integration gated on resolveNuxtContentVersion(), which only ever answers for @nuxt/content. An app running comark-content never reached the frontmatter mapping, so robots: false in a Markdown file did nothing and gave no warning about it.

comark fires content:file:afterParse with the same context shape as @nuxt/content v3, so this is the same handler behind resolveContentProvider() instead of a version number. No new frontmatter, no schema opt in, and useSeoMeta(page.seo) renders it exactly as before.

The Cloudflare opt out stays scoped to Nuxt Content v2. comark reads Markdown into Nitro server assets at build time, so there is no database to be unavailable at the edge.

Depends on nuxtseo-shared exporting resolveContentProvider(). CI is red until that publishes.

🔗 Related

Six PRs for one cross-repo change. Release order is top to bottom:

  1. nuxt-seo nuxtseo-shared feat(shared): detect comark-content as a content provider harlan-zw/nuxt-seo#621
  2. @nuxtjs/sitemap feat: first-party comark-content support sitemap#665
  3. @nuxtjs/robots feat: first-party comark-content support #321
  4. nuxt-schema-org feat: first-party comark-content support harlan-zw/nuxt-schema-org#151
  5. nuxt-link-checker feat: first-party comark-content support harlan-zw/nuxt-link-checker#104
  6. comark-content feat(comark-content): hand the sitemap integration to @nuxtjs/sitemap harlan-zw/harlan-nuxt#74

2 through 5 need 1 published. 6 needs 2 published.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

resolveNuxtContentVersion() only answers for @nuxt/content, so an app running
comark-content never reached the robots frontmatter mapping.

Switch to resolveContentProvider() and run the same content:file:afterParse
handler for both providers. comark reads Markdown into Nitro server assets
rather than a database, so unlike Nuxt Content v2 it needs no Cloudflare opt
out.
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.

1 participant