Nuxt & Universal SSR (50 Qs)•Part 3: Advanced Internals, Performance & Production (Senior / Staff)
What is `@nuxt/content` v2 and how does it empower Git-based Headless CMS?
senior LevelCode ExampleFormsPerformanceVue & Nuxt
In Simple Words:
@nuxt/content parses Markdown, YML, CSV, and JSON files inside a content/ directory into a file-based CMS. It supports MDC syntax (Markdown Component syntax), allowing authors to embed live Vue components directly inside standard Markdown text (::hero{title="Hello"} ::).
vue
<template>
<main>
<ContentDoc /> <!-- Auto-fetches and renders Markdown matching current route -->
</main>
</template>