[{"data":1,"prerenderedAt":1918},["ShallowReactive",2],{"navigation":3,"docs-/v1/getting-started/introduction":164,"docs-/v1/getting-started/introduction-surround":605},[4,20,45,67,92,102,115],{"title":5,"_path":6,"children":7},"Get Started","/get-started",[8,11,14,17],{"title":9,"_path":10},"Installation","/get-started/installation",{"title":12,"_path":13},"Configuration","/get-started/configuration",{"title":15,"_path":16},"Edge Channel","/get-started/edge-channel",{"title":18,"_path":19},"Migration","/get-started/from-v1",{"title":21,"_path":22,"children":23},"Usage","/usage",[24,27,30,33,36,39,42],{"title":25,"_path":26},"Content Directory","/usage/content-directory",{"title":28,"_path":29},"Markdown","/usage/markdown",{"title":31,"_path":32},"JSON, YAML, CSV","/usage/files",{"title":34,"_path":35},"Render Content","/usage/render",{"title":37,"_path":38},"Search","/usage/search",{"title":40,"_path":41},"Fetch Navigation","/usage/navigation",{"title":43,"_path":44},"TypeScript Support","/usage/typescript",{"title":46,"_path":47,"children":48},"Composables","/composables",[49,52,55,58,61,64],{"title":50,"_path":51},"queryContent()","/composables/query-content",{"title":53,"_path":54},"fetchContentNavigation()","/composables/fetch-content-navigation",{"title":56,"_path":57},"useContentHead()","/composables/use-content-head",{"title":59,"_path":60},"useContentHelpers()","/composables/use-content-helpers",{"title":62,"_path":63},"useUnwrap()","/composables/use-unwrap",{"title":65,"_path":66},"searchContent()","/composables/search-content",{"title":68,"_path":69,"children":70},"Components","/components",[71,74,77,80,83,86,89],{"title":72,"_path":73},"\u003CContentDoc>","/components/content-doc",{"title":75,"_path":76},"\u003CContentRenderer>","/components/content-renderer",{"title":78,"_path":79},"\u003CContentList>","/components/content-list",{"title":81,"_path":82},"\u003CContentNavigation>","/components/content-navigation",{"title":84,"_path":85},"\u003CContentQuery>","/components/content-query",{"title":87,"_path":88},"\u003CContentSlot>","/components/content-slot",{"title":90,"_path":91},"Prose Components","/components/prose",{"title":93,"_path":94,"children":95},"Document Driven","/document-driven",[96,99],{"title":97,"_path":98},"Introduction","/document-driven/introduction",{"title":100,"_path":101},"useContent()","/document-driven/use-content",{"title":103,"_path":104,"children":105},"Recipes","/recipes",[106,109,112],{"title":107,"_path":108},"Hooks","/recipes/hooks",{"title":110,"_path":111},"Transformers","/recipes/transformers",{"title":113,"_path":114},"Sitemap","/recipes/sitemap",{"title":116,"_path":117,"children":118},"V1","/v1",[119,141,154],{"title":120,"_path":121,"children":122},"Getting Started","/v1/getting-started",[123,125,127,130,133,136,138],{"title":97,"_path":124},"/v1/getting-started/introduction",{"title":9,"_path":126},"/v1/getting-started/installation",{"title":128,"_path":129},"Writing content","/v1/getting-started/writing",{"title":131,"_path":132},"Fetching content","/v1/getting-started/fetching",{"title":134,"_path":135},"Displaying content","/v1/getting-started/displaying",{"title":12,"_path":137},"/v1/getting-started/configuration",{"title":139,"_path":140},"Advanced","/v1/getting-started/advanced",{"title":142,"_path":143,"children":144},"Examples","/v1/examples",[145,148,151],{"title":146,"_path":147},"Basic Usage","/v1/examples/basic",{"title":149,"_path":150},"TailwindCSS","/v1/examples/tailwindcss-typography",{"title":152,"_path":153},"Docs Theme","/v1/examples/docs-theme",{"title":155,"_path":156,"children":157},"Community","/v1/community",[158,161],{"title":159,"_path":160},"Snippets","/v1/community/snippets",{"title":162,"_path":163},"Integrations","/v1/community/integrations",{"_path":124,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":97,"description":168,"body":169,"_type":600,"_id":601,"_source":602,"_file":603,"_extension":604},"getting-started",false,"","Empower your NuxtJS application with the @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB-like API, acting as a Git-based Headless CMS.",{"type":170,"children":171,"toc":593},"root",[172,181,243,249,271,297,310,329,335,347,353,382,418,456,479,508,539,570],{"type":173,"tag":174,"props":175,"children":177},"element","h2",{"id":176},"features",[178],{"type":179,"value":180},"text","Features",{"type":173,"tag":182,"props":183,"children":184},"ul",{},[185,191,196,201,213,218,223,228,233,238],{"type":173,"tag":186,"props":187,"children":188},"li",{},[189],{"type":179,"value":190},"Blazing fast hot reload in development",{"type":173,"tag":186,"props":192,"children":193},{},[194],{"type":179,"value":195},"Vue components in Markdown",{"type":173,"tag":186,"props":197,"children":198},{},[199],{"type":179,"value":200},"Full-text search",{"type":173,"tag":186,"props":202,"children":203},{},[204,206],{"type":179,"value":205},"Support static site generation with ",{"type":173,"tag":207,"props":208,"children":210},"code",{"className":209},[],[211],{"type":179,"value":212},"nuxt generate",{"type":173,"tag":186,"props":214,"children":215},{},[216],{"type":179,"value":217},"Powerful QueryBuilder API (MongoDB like)",{"type":173,"tag":186,"props":219,"children":220},{},[221],{"type":179,"value":222},"Syntax highlighting to code blocks in markdown files using PrismJS.",{"type":173,"tag":186,"props":224,"children":225},{},[226],{"type":179,"value":227},"Table of contents generation",{"type":173,"tag":186,"props":229,"children":230},{},[231],{"type":179,"value":232},"Handles Markdown, CSV, YAML, JSON(5), XML",{"type":173,"tag":186,"props":234,"children":235},{},[236],{"type":179,"value":237},"Extend with custom parsers",{"type":173,"tag":186,"props":239,"children":240},{},[241],{"type":179,"value":242},"Extend with hooks",{"type":173,"tag":174,"props":244,"children":246},{"id":245},"videos",[247],{"type":179,"value":248},"Videos",{"type":173,"tag":250,"props":251,"children":252},"p",{},[253,255,261,263,269],{"type":179,"value":254},"Demonstration of using ",{"type":173,"tag":207,"props":256,"children":258},{"className":257},[],[259],{"type":179,"value":260},"$content",{"type":179,"value":262}," and ",{"type":173,"tag":207,"props":264,"children":266},{"className":265},[],[267],{"type":179,"value":268},"\u003Cnuxt-content>",{"type":179,"value":270}," to display Markdown pages:",{"type":173,"tag":272,"props":273,"children":276},"video",{"poster":274,"loop":275,"playsInline":275,"controls":275},"https://res.cloudinary.com/nuxt/video/upload/v1588091670/nuxt-content_wxnjje.jpg",true,[277,279,285,286,291,292],{"type":179,"value":278},"\n  ",{"type":173,"tag":280,"props":281,"children":284},"source",{"src":282,"type":283},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588091670/nuxt-content_wxnjje.webm","video/webm",[],{"type":179,"value":278},{"type":173,"tag":280,"props":287,"children":290},{"src":288,"type":289},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588091670/nuxt-content_wxnjje.mp4","video/mp4",[],{"type":179,"value":278},{"type":173,"tag":280,"props":293,"children":296},{"src":294,"type":295},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588091670/nuxt-content_wxnjje.ogv","video/ogg",[],{"type":173,"tag":250,"props":298,"children":299},{},[300,302,308],{"type":179,"value":301},"Using ",{"type":173,"tag":207,"props":303,"children":305},{"className":304},[],[306],{"type":179,"value":307},"$content()",{"type":179,"value":309}," on a directory to list, filter and search content:",{"type":173,"tag":272,"props":311,"children":313},{"poster":312,"loop":275,"playsInline":275,"controls":275},"https://res.cloudinary.com/nuxt/video/upload/v1588095794/nuxt-content-movies_c0cq9p.jpg",[314,315,319,320,324,325],{"type":179,"value":278},{"type":173,"tag":280,"props":316,"children":318},{"src":317,"type":283},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588095794/nuxt-content-movies_c0cq9p.webm",[],{"type":179,"value":278},{"type":173,"tag":280,"props":321,"children":323},{"src":322,"type":289},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588095794/nuxt-content-movies_c0cq9p.mp4",[],{"type":179,"value":278},{"type":173,"tag":280,"props":326,"children":328},{"src":327,"type":295},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588095794/nuxt-content-movies_c0cq9p.ogv",[],{"type":173,"tag":174,"props":330,"children":332},{"id":331},"tutorial",[333],{"type":179,"value":334},"Tutorial",{"type":173,"tag":250,"props":336,"children":337},{},[338],{"type":173,"tag":339,"props":340,"children":344},"a",{"href":341,"rel":342},"https://v2.nuxt.com/tutorials/creating-blog-with-nuxt-content/",[343],"nofollow",[345],{"type":179,"value":346},"Create a blog with Nuxt Content",{"type":173,"tag":174,"props":348,"children":350},{"id":349},"testimonials",[351],{"type":179,"value":352},"Testimonials",{"type":173,"tag":354,"props":355,"children":358},"blockquote",{"className":356},[357],"twitter-tweet",[359,374,376],{"type":173,"tag":250,"props":360,"children":363},{"lang":361,"dir":362},"en","ltr",[364,366,372],{"type":179,"value":365},"Really enjoy working with the ",{"type":173,"tag":339,"props":367,"children":369},{"href":368},"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw",[370],{"type":179,"value":371},"@nuxt_js",{"type":179,"value":373}," content module more and more. Especially from a developer perspective. The api is easy to learn and really powerful. Give it a try if you haven't already.",{"type":179,"value":375},"— Rasmus Langvad (@rlangvad) ",{"type":173,"tag":339,"props":377,"children":379},{"href":378},"https://twitter.com/rlangvad/status/1352940444200669186?ref_src=twsrc%5Etfw",[380],{"type":179,"value":381},"January 23, 2021",{"type":173,"tag":354,"props":383,"children":385},{"className":384},[357],[386,410,412],{"type":173,"tag":250,"props":387,"children":388},{"lang":361,"dir":362},[389,391,397,399,403,405],{"type":179,"value":390},"Adding an FAQ to ",{"type":173,"tag":339,"props":392,"children":394},{"href":393},"https://twitter.com/turnaudio?ref_src=twsrc%5Etfw",[395],{"type":179,"value":396},"@TurnAudio",{"type":179,"value":398}," using ",{"type":173,"tag":339,"props":400,"children":401},{"href":368},[402],{"type":179,"value":371},{"type":179,"value":404}," nuxt/content. Really great module for organizing a little bit of content within your static website ",{"type":173,"tag":339,"props":406,"children":408},{"href":407},"https://t.co/o2uA9Lvmuu",[409],{"type":179,"value":407},{"type":179,"value":411},"— Lee Martin (@leemartin) ",{"type":173,"tag":339,"props":413,"children":415},{"href":414},"https://twitter.com/leemartin/status/1290374428107341830?ref_src=twsrc%5Etfw",[416],{"type":179,"value":417},"August 3, 2020",{"type":173,"tag":354,"props":419,"children":421},{"className":420},[357],[422,448,450],{"type":173,"tag":250,"props":423,"children":424},{"lang":361,"dir":362},[425,427,431,433,437,440,442],{"type":179,"value":426},"Wanted to try out ",{"type":173,"tag":339,"props":428,"children":429},{"href":368},[430],{"type":179,"value":371},{"type":179,"value":432}," new content theme doc, was a blast!",{"type":173,"tag":434,"props":435,"children":436},"br",{},[],{"type":173,"tag":434,"props":438,"children":439},{},[],{"type":179,"value":441},"Managed to hack its interals to extend its Tailwind config with mine hihihi... ",{"type":173,"tag":339,"props":443,"children":445},{"href":444},"https://t.co/fuXXOBKXYE",[446],{"type":179,"value":447},"pic.twitter.com/fuXXOBKXYE",{"type":179,"value":449},"— lihbr (@li_hbr) ",{"type":173,"tag":339,"props":451,"children":453},{"href":452},"https://twitter.com/li_hbr/status/1289536277897834497?ref_src=twsrc%5Etfw",[454],{"type":179,"value":455},"August 1, 2020",{"type":173,"tag":354,"props":457,"children":459},{"className":458},[357],[460,471,473],{"type":173,"tag":250,"props":461,"children":462},{"lang":361,"dir":362},[463,465,469],{"type":179,"value":464},"On an upper ",{"type":173,"tag":339,"props":466,"children":467},{"href":368},[468],{"type":179,"value":371},{"type":179,"value":470}," is the most exciting thing in web for me right now, everything they put out is golden. The content module is phenomenal.",{"type":179,"value":472},"— Liam Hall - Three Bears (@wearethreebears) ",{"type":173,"tag":339,"props":474,"children":476},{"href":475},"https://twitter.com/wearethreebears/status/1289345099214725120?ref_src=twsrc%5Etfw",[477],{"type":179,"value":478},"July 31, 2020",{"type":173,"tag":354,"props":480,"children":482},{"className":481},[357],[483,501,503],{"type":173,"tag":250,"props":484,"children":485},{"lang":361,"dir":362},[486,488,494,495,499],{"type":179,"value":487},"I've been working on a new portfolio/blog today with ",{"type":173,"tag":339,"props":489,"children":491},{"href":490},"https://twitter.com/tailwindcss?ref_src=twsrc%5Etfw",[492],{"type":179,"value":493},"@tailwindcss",{"type":179,"value":262},{"type":173,"tag":339,"props":496,"children":497},{"href":368},[498],{"type":179,"value":371},{"type":179,"value":500},". I'm blown away by Nuxt Content.",{"type":179,"value":502},"— Cameron Baney (@cameronbaney) ",{"type":173,"tag":339,"props":504,"children":506},{"href":505},"https://twitter.com/cameronbaney/status/1289671455559413761?ref_src=twsrc%5Etfw",[507],{"type":179,"value":455},{"type":173,"tag":354,"props":509,"children":511},{"className":510},[357],[512,531,533],{"type":173,"tag":250,"props":513,"children":514},{"lang":361,"dir":362},[515,517,521,523,529],{"type":179,"value":516},"Docs powered by the new ",{"type":173,"tag":339,"props":518,"children":519},{"href":368},[520],{"type":179,"value":371},{"type":179,"value":522}," content plugin and stored in ",{"type":173,"tag":339,"props":524,"children":526},{"href":525},"https://twitter.com/Netlify?ref_src=twsrc%5Etfw",[527],{"type":179,"value":528},"@Netlify",{"type":179,"value":530}," what a time to be a developer",{"type":179,"value":532},"— Alfonso Bribiesca (@alfonsobries) ",{"type":173,"tag":339,"props":534,"children":536},{"href":535},"https://twitter.com/alfonsobries/status/1288653236833062913?ref_src=twsrc%5Etfw",[537],{"type":179,"value":538},"July 30, 2020",{"type":173,"tag":354,"props":540,"children":542},{"className":541},[357],[543,562,564],{"type":173,"tag":250,"props":544,"children":545},{"lang":361,"dir":362},[546,548,552,554,557,560],{"type":179,"value":547},"The new vee-validate v4 documentation is using ",{"type":173,"tag":339,"props":549,"children":550},{"href":368},[551],{"type":179,"value":371},{"type":179,"value":553}," content module and so far it is too damn good 🔥",{"type":173,"tag":434,"props":555,"children":556},{},[],{"type":173,"tag":434,"props":558,"children":559},{},[],{"type":179,"value":561},"I like being able to create my own layouts and \"on this page\" and \"menu\" components, in other words, to be in full control 🎮",{"type":179,"value":563},"— Abdelrahman Awad (@logaretm) ",{"type":173,"tag":339,"props":565,"children":567},{"href":566},"https://twitter.com/logaretm/status/1287526576847048705?ref_src=twsrc%5Etfw",[568],{"type":179,"value":569},"July 26, 2020",{"type":173,"tag":354,"props":571,"children":573},{"className":572},[357],[574,585,587],{"type":173,"tag":250,"props":575,"children":576},{"lang":361,"dir":362},[577,579,583],{"type":179,"value":578},"Decided to build a blog with ",{"type":173,"tag":339,"props":580,"children":581},{"href":368},[582],{"type":179,"value":371},{"type":179,"value":584}," content module. I mean, it's rapid and lightning quick to setup. Super nice experience thus far 👌",{"type":179,"value":586},"— 𝖊𝖗𝖉 (@erd_xyz) ",{"type":173,"tag":339,"props":588,"children":590},{"href":589},"https://twitter.com/erd_xyz/status/1286395125447483394?ref_src=twsrc%5Etfw",[591],{"type":179,"value":592},"July 23, 2020",{"title":167,"searchDepth":594,"depth":594,"links":595},2,[596,597,598,599],{"id":176,"depth":594,"text":180},{"id":245,"depth":594,"text":248},{"id":331,"depth":594,"text":334},{"id":349,"depth":594,"text":352},"markdown","content:7.v1:1.getting-started:1.introduction.md","content","7.v1/1.getting-started/1.introduction.md","md",[606,1516],{"_path":114,"_dir":607,"_draft":166,"_partial":166,"_locale":167,"title":113,"description":608,"body":609,"_type":600,"_id":1514,"_source":602,"_file":1515,"_extension":604},"recipes","A sitemap file is useful for helping Google to better index your website, ensuring that the content you write can be visible in search results.",{"type":170,"children":610,"toc":1510},[611,625,630,636,649,733,739,761,790,795,1326,1339,1351,1371,1504],{"type":173,"tag":250,"props":612,"children":613},{},[614,616,623],{"type":179,"value":615},"Need a complete Sitemap solution? Check out ",{"type":173,"tag":339,"props":617,"children":620},{"href":618,"rel":619},"https://nuxtseo.com/sitemap/integrations/content",[343],[621],{"type":179,"value":622},"Nuxt Simple Sitemap",{"type":179,"value":624},", it integrates with Nuxt Content's document-driven mode and frontmatter.",{"type":173,"tag":250,"props":626,"children":627},{},[628],{"type":179,"value":629},"Otherwise, feel free to implement your own with the below guide.",{"type":173,"tag":174,"props":631,"children":633},{"id":632},"add-dependencies",[634],{"type":179,"value":635},"Add dependencies",{"type":173,"tag":250,"props":637,"children":638},{},[639,641,647],{"type":179,"value":640},"This can be created by utilising the ",{"type":173,"tag":207,"props":642,"children":644},{"className":643},[],[645],{"type":179,"value":646},"sitemap",{"type":179,"value":648}," library, which can be installed as follows:",{"type":173,"tag":650,"props":651,"children":652},"code-group",{},[653,686,709],{"type":173,"tag":654,"props":655,"children":660},"pre",{"className":656,"code":657,"filename":658,"language":659,"meta":167,"style":167},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add sitemap\n","pnpm","bash",[661],{"type":173,"tag":207,"props":662,"children":663},{"__ignoreMap":167},[664],{"type":173,"tag":665,"props":666,"children":669},"span",{"class":667,"line":668},"line",1,[670,675,681],{"type":173,"tag":665,"props":671,"children":673},{"style":672},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[674],{"type":179,"value":658},{"type":173,"tag":665,"props":676,"children":678},{"style":677},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[679],{"type":179,"value":680}," add",{"type":173,"tag":665,"props":682,"children":683},{"style":677},[684],{"type":179,"value":685}," sitemap\n",{"type":173,"tag":654,"props":687,"children":690},{"className":656,"code":688,"filename":689,"language":659,"meta":167,"style":167},"yarn add sitemap\n","yarn",[691],{"type":173,"tag":207,"props":692,"children":693},{"__ignoreMap":167},[694],{"type":173,"tag":665,"props":695,"children":696},{"class":667,"line":668},[697,701,705],{"type":173,"tag":665,"props":698,"children":699},{"style":672},[700],{"type":179,"value":689},{"type":173,"tag":665,"props":702,"children":703},{"style":677},[704],{"type":179,"value":680},{"type":173,"tag":665,"props":706,"children":707},{"style":677},[708],{"type":179,"value":685},{"type":173,"tag":654,"props":710,"children":713},{"className":656,"code":711,"filename":712,"language":659,"meta":167,"style":167},"npm install sitemap\n","npm",[714],{"type":173,"tag":207,"props":715,"children":716},{"__ignoreMap":167},[717],{"type":173,"tag":665,"props":718,"children":719},{"class":667,"line":668},[720,724,729],{"type":173,"tag":665,"props":721,"children":722},{"style":672},[723],{"type":179,"value":712},{"type":173,"tag":665,"props":725,"children":726},{"style":677},[727],{"type":179,"value":728}," install",{"type":173,"tag":665,"props":730,"children":731},{"style":677},[732],{"type":179,"value":685},{"type":173,"tag":174,"props":734,"children":736},{"id":735},"server-route",[737],{"type":179,"value":738},"Server Route",{"type":173,"tag":250,"props":740,"children":741},{},[742,744,751,753,759],{"type":179,"value":743},"We will be utilising the ",{"type":173,"tag":339,"props":745,"children":748},{"href":746,"rel":747},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[343],[749],{"type":179,"value":750},"server routes",{"type":179,"value":752}," available within Nuxt, and to do so you'll need to create the ",{"type":173,"tag":207,"props":754,"children":756},{"className":755},[],[757],{"type":179,"value":758},"server/",{"type":179,"value":760}," directory within your website's root directly.",{"type":173,"tag":250,"props":762,"children":763},{},[764,766,772,774,780,782,788],{"type":179,"value":765},"Once this is done, create a ",{"type":173,"tag":207,"props":767,"children":769},{"className":768},[],[770],{"type":179,"value":771},"routes/",{"type":179,"value":773}," directory inside this, and add a ",{"type":173,"tag":207,"props":775,"children":777},{"className":776},[],[778],{"type":179,"value":779},"sitemap.xml.ts",{"type":179,"value":781}," file, this will translate to ",{"type":173,"tag":207,"props":783,"children":785},{"className":784},[],[786],{"type":179,"value":787},"/sitemap.xml",{"type":179,"value":789},".",{"type":173,"tag":250,"props":791,"children":792},{},[793],{"type":179,"value":794},"You'll need to add the following:",{"type":173,"tag":654,"props":796,"children":801},{"className":797,"code":798,"filename":799,"language":800,"meta":167,"style":167},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverQueryContent } from '#content/server'\nimport { SitemapStream, streamToPromise } from 'sitemap'\n\nexport default defineEventHandler(async (event) => {\n  // Fetch all documents\n  const docs = await serverQueryContent(event).find()\n  const sitemap = new SitemapStream({\n    hostname: 'https://example.com'\n  })\n\n  for (const doc of docs) {\n    sitemap.write({\n      url: doc._path,\n      changefreq: 'monthly'\n    })\n  }\n  sitemap.end()\n\n  return streamToPromise(sitemap)\n})\n","server/routes/sitemap.xml.ts","ts",[802],{"type":173,"tag":207,"props":803,"children":804},{"__ignoreMap":167},[805,851,897,906,963,973,1028,1063,1090,1104,1112,1153,1179,1210,1236,1249,1258,1280,1288,1313],{"type":173,"tag":665,"props":806,"children":807},{"class":667,"line":668},[808,814,820,826,831,836,841,846],{"type":173,"tag":665,"props":809,"children":811},{"style":810},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[812],{"type":179,"value":813},"import",{"type":173,"tag":665,"props":815,"children":817},{"style":816},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[818],{"type":179,"value":819}," {",{"type":173,"tag":665,"props":821,"children":823},{"style":822},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[824],{"type":179,"value":825}," serverQueryContent",{"type":173,"tag":665,"props":827,"children":828},{"style":816},[829],{"type":179,"value":830}," }",{"type":173,"tag":665,"props":832,"children":833},{"style":810},[834],{"type":179,"value":835}," from",{"type":173,"tag":665,"props":837,"children":838},{"style":816},[839],{"type":179,"value":840}," '",{"type":173,"tag":665,"props":842,"children":843},{"style":677},[844],{"type":179,"value":845},"#content/server",{"type":173,"tag":665,"props":847,"children":848},{"style":816},[849],{"type":179,"value":850},"'\n",{"type":173,"tag":665,"props":852,"children":853},{"class":667,"line":594},[854,858,862,867,872,877,881,885,889,893],{"type":173,"tag":665,"props":855,"children":856},{"style":810},[857],{"type":179,"value":813},{"type":173,"tag":665,"props":859,"children":860},{"style":816},[861],{"type":179,"value":819},{"type":173,"tag":665,"props":863,"children":864},{"style":822},[865],{"type":179,"value":866}," SitemapStream",{"type":173,"tag":665,"props":868,"children":869},{"style":816},[870],{"type":179,"value":871},",",{"type":173,"tag":665,"props":873,"children":874},{"style":822},[875],{"type":179,"value":876}," streamToPromise",{"type":173,"tag":665,"props":878,"children":879},{"style":816},[880],{"type":179,"value":830},{"type":173,"tag":665,"props":882,"children":883},{"style":810},[884],{"type":179,"value":835},{"type":173,"tag":665,"props":886,"children":887},{"style":816},[888],{"type":179,"value":840},{"type":173,"tag":665,"props":890,"children":891},{"style":677},[892],{"type":179,"value":646},{"type":173,"tag":665,"props":894,"children":895},{"style":816},[896],{"type":179,"value":850},{"type":173,"tag":665,"props":898,"children":900},{"class":667,"line":899},3,[901],{"type":173,"tag":665,"props":902,"children":903},{"emptyLinePlaceholder":275},[904],{"type":179,"value":905},"\n",{"type":173,"tag":665,"props":907,"children":909},{"class":667,"line":908},4,[910,915,920,926,931,937,942,948,953,958],{"type":173,"tag":665,"props":911,"children":912},{"style":810},[913],{"type":179,"value":914},"export",{"type":173,"tag":665,"props":916,"children":917},{"style":810},[918],{"type":179,"value":919}," default",{"type":173,"tag":665,"props":921,"children":923},{"style":922},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[924],{"type":179,"value":925}," defineEventHandler",{"type":173,"tag":665,"props":927,"children":928},{"style":822},[929],{"type":179,"value":930},"(",{"type":173,"tag":665,"props":932,"children":934},{"style":933},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[935],{"type":179,"value":936},"async",{"type":173,"tag":665,"props":938,"children":939},{"style":816},[940],{"type":179,"value":941}," (",{"type":173,"tag":665,"props":943,"children":945},{"style":944},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[946],{"type":179,"value":947},"event",{"type":173,"tag":665,"props":949,"children":950},{"style":816},[951],{"type":179,"value":952},")",{"type":173,"tag":665,"props":954,"children":955},{"style":933},[956],{"type":179,"value":957}," =>",{"type":173,"tag":665,"props":959,"children":960},{"style":816},[961],{"type":179,"value":962}," {\n",{"type":173,"tag":665,"props":964,"children":966},{"class":667,"line":965},5,[967],{"type":173,"tag":665,"props":968,"children":970},{"style":969},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[971],{"type":179,"value":972},"  // Fetch all documents\n",{"type":173,"tag":665,"props":974,"children":976},{"class":667,"line":975},6,[977,982,987,992,997,1001,1006,1010,1014,1018,1023],{"type":173,"tag":665,"props":978,"children":979},{"style":933},[980],{"type":179,"value":981},"  const",{"type":173,"tag":665,"props":983,"children":984},{"style":822},[985],{"type":179,"value":986}," docs",{"type":173,"tag":665,"props":988,"children":989},{"style":816},[990],{"type":179,"value":991}," =",{"type":173,"tag":665,"props":993,"children":994},{"style":810},[995],{"type":179,"value":996}," await",{"type":173,"tag":665,"props":998,"children":999},{"style":922},[1000],{"type":179,"value":825},{"type":173,"tag":665,"props":1002,"children":1004},{"style":1003},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1005],{"type":179,"value":930},{"type":173,"tag":665,"props":1007,"children":1008},{"style":822},[1009],{"type":179,"value":947},{"type":173,"tag":665,"props":1011,"children":1012},{"style":1003},[1013],{"type":179,"value":952},{"type":173,"tag":665,"props":1015,"children":1016},{"style":816},[1017],{"type":179,"value":789},{"type":173,"tag":665,"props":1019,"children":1020},{"style":922},[1021],{"type":179,"value":1022},"find",{"type":173,"tag":665,"props":1024,"children":1025},{"style":1003},[1026],{"type":179,"value":1027},"()\n",{"type":173,"tag":665,"props":1029,"children":1031},{"class":667,"line":1030},7,[1032,1036,1041,1045,1050,1054,1058],{"type":173,"tag":665,"props":1033,"children":1034},{"style":933},[1035],{"type":179,"value":981},{"type":173,"tag":665,"props":1037,"children":1038},{"style":822},[1039],{"type":179,"value":1040}," sitemap",{"type":173,"tag":665,"props":1042,"children":1043},{"style":816},[1044],{"type":179,"value":991},{"type":173,"tag":665,"props":1046,"children":1047},{"style":816},[1048],{"type":179,"value":1049}," new",{"type":173,"tag":665,"props":1051,"children":1052},{"style":922},[1053],{"type":179,"value":866},{"type":173,"tag":665,"props":1055,"children":1056},{"style":1003},[1057],{"type":179,"value":930},{"type":173,"tag":665,"props":1059,"children":1060},{"style":816},[1061],{"type":179,"value":1062},"{\n",{"type":173,"tag":665,"props":1064,"children":1066},{"class":667,"line":1065},8,[1067,1072,1077,1081,1086],{"type":173,"tag":665,"props":1068,"children":1069},{"style":1003},[1070],{"type":179,"value":1071},"    hostname",{"type":173,"tag":665,"props":1073,"children":1074},{"style":816},[1075],{"type":179,"value":1076},":",{"type":173,"tag":665,"props":1078,"children":1079},{"style":816},[1080],{"type":179,"value":840},{"type":173,"tag":665,"props":1082,"children":1083},{"style":677},[1084],{"type":179,"value":1085},"https://example.com",{"type":173,"tag":665,"props":1087,"children":1088},{"style":816},[1089],{"type":179,"value":850},{"type":173,"tag":665,"props":1091,"children":1093},{"class":667,"line":1092},9,[1094,1099],{"type":173,"tag":665,"props":1095,"children":1096},{"style":816},[1097],{"type":179,"value":1098},"  }",{"type":173,"tag":665,"props":1100,"children":1101},{"style":1003},[1102],{"type":179,"value":1103},")\n",{"type":173,"tag":665,"props":1105,"children":1107},{"class":667,"line":1106},10,[1108],{"type":173,"tag":665,"props":1109,"children":1110},{"emptyLinePlaceholder":275},[1111],{"type":179,"value":905},{"type":173,"tag":665,"props":1113,"children":1115},{"class":667,"line":1114},11,[1116,1121,1125,1130,1135,1140,1144,1149],{"type":173,"tag":665,"props":1117,"children":1118},{"style":810},[1119],{"type":179,"value":1120},"  for",{"type":173,"tag":665,"props":1122,"children":1123},{"style":1003},[1124],{"type":179,"value":941},{"type":173,"tag":665,"props":1126,"children":1127},{"style":933},[1128],{"type":179,"value":1129},"const",{"type":173,"tag":665,"props":1131,"children":1132},{"style":822},[1133],{"type":179,"value":1134}," doc",{"type":173,"tag":665,"props":1136,"children":1137},{"style":816},[1138],{"type":179,"value":1139}," of",{"type":173,"tag":665,"props":1141,"children":1142},{"style":822},[1143],{"type":179,"value":986},{"type":173,"tag":665,"props":1145,"children":1146},{"style":1003},[1147],{"type":179,"value":1148},") ",{"type":173,"tag":665,"props":1150,"children":1151},{"style":816},[1152],{"type":179,"value":1062},{"type":173,"tag":665,"props":1154,"children":1156},{"class":667,"line":1155},12,[1157,1162,1166,1171,1175],{"type":173,"tag":665,"props":1158,"children":1159},{"style":822},[1160],{"type":179,"value":1161},"    sitemap",{"type":173,"tag":665,"props":1163,"children":1164},{"style":816},[1165],{"type":179,"value":789},{"type":173,"tag":665,"props":1167,"children":1168},{"style":922},[1169],{"type":179,"value":1170},"write",{"type":173,"tag":665,"props":1172,"children":1173},{"style":1003},[1174],{"type":179,"value":930},{"type":173,"tag":665,"props":1176,"children":1177},{"style":816},[1178],{"type":179,"value":1062},{"type":173,"tag":665,"props":1180,"children":1182},{"class":667,"line":1181},13,[1183,1188,1192,1196,1200,1205],{"type":173,"tag":665,"props":1184,"children":1185},{"style":1003},[1186],{"type":179,"value":1187},"      url",{"type":173,"tag":665,"props":1189,"children":1190},{"style":816},[1191],{"type":179,"value":1076},{"type":173,"tag":665,"props":1193,"children":1194},{"style":822},[1195],{"type":179,"value":1134},{"type":173,"tag":665,"props":1197,"children":1198},{"style":816},[1199],{"type":179,"value":789},{"type":173,"tag":665,"props":1201,"children":1202},{"style":822},[1203],{"type":179,"value":1204},"_path",{"type":173,"tag":665,"props":1206,"children":1207},{"style":816},[1208],{"type":179,"value":1209},",\n",{"type":173,"tag":665,"props":1211,"children":1213},{"class":667,"line":1212},14,[1214,1219,1223,1227,1232],{"type":173,"tag":665,"props":1215,"children":1216},{"style":1003},[1217],{"type":179,"value":1218},"      changefreq",{"type":173,"tag":665,"props":1220,"children":1221},{"style":816},[1222],{"type":179,"value":1076},{"type":173,"tag":665,"props":1224,"children":1225},{"style":816},[1226],{"type":179,"value":840},{"type":173,"tag":665,"props":1228,"children":1229},{"style":677},[1230],{"type":179,"value":1231},"monthly",{"type":173,"tag":665,"props":1233,"children":1234},{"style":816},[1235],{"type":179,"value":850},{"type":173,"tag":665,"props":1237,"children":1239},{"class":667,"line":1238},15,[1240,1245],{"type":173,"tag":665,"props":1241,"children":1242},{"style":816},[1243],{"type":179,"value":1244},"    }",{"type":173,"tag":665,"props":1246,"children":1247},{"style":1003},[1248],{"type":179,"value":1103},{"type":173,"tag":665,"props":1250,"children":1252},{"class":667,"line":1251},16,[1253],{"type":173,"tag":665,"props":1254,"children":1255},{"style":816},[1256],{"type":179,"value":1257},"  }\n",{"type":173,"tag":665,"props":1259,"children":1261},{"class":667,"line":1260},17,[1262,1267,1271,1276],{"type":173,"tag":665,"props":1263,"children":1264},{"style":822},[1265],{"type":179,"value":1266},"  sitemap",{"type":173,"tag":665,"props":1268,"children":1269},{"style":816},[1270],{"type":179,"value":789},{"type":173,"tag":665,"props":1272,"children":1273},{"style":922},[1274],{"type":179,"value":1275},"end",{"type":173,"tag":665,"props":1277,"children":1278},{"style":1003},[1279],{"type":179,"value":1027},{"type":173,"tag":665,"props":1281,"children":1283},{"class":667,"line":1282},18,[1284],{"type":173,"tag":665,"props":1285,"children":1286},{"emptyLinePlaceholder":275},[1287],{"type":179,"value":905},{"type":173,"tag":665,"props":1289,"children":1291},{"class":667,"line":1290},19,[1292,1297,1301,1305,1309],{"type":173,"tag":665,"props":1293,"children":1294},{"style":810},[1295],{"type":179,"value":1296},"  return",{"type":173,"tag":665,"props":1298,"children":1299},{"style":922},[1300],{"type":179,"value":876},{"type":173,"tag":665,"props":1302,"children":1303},{"style":1003},[1304],{"type":179,"value":930},{"type":173,"tag":665,"props":1306,"children":1307},{"style":822},[1308],{"type":179,"value":646},{"type":173,"tag":665,"props":1310,"children":1311},{"style":1003},[1312],{"type":179,"value":1103},{"type":173,"tag":665,"props":1314,"children":1316},{"class":667,"line":1315},20,[1317,1322],{"type":173,"tag":665,"props":1318,"children":1319},{"style":816},[1320],{"type":179,"value":1321},"}",{"type":173,"tag":665,"props":1323,"children":1324},{"style":822},[1325],{"type":179,"value":1103},{"type":173,"tag":250,"props":1327,"children":1328},{},[1329,1331,1337],{"type":179,"value":1330},"Now, once users go to ",{"type":173,"tag":207,"props":1332,"children":1334},{"className":1333},[],[1335],{"type":179,"value":1336},"https://example.com/sitemap.xml",{"type":179,"value":1338},", you'll find the generated XML file with all your pages.",{"type":173,"tag":250,"props":1340,"children":1341},{},[1342,1344,1349],{"type":179,"value":1343},"When using ",{"type":173,"tag":207,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":179,"value":212},{"type":179,"value":1350},", you may want to pre-render the sitemap since the server route won't be able to run on a static hosting.",{"type":173,"tag":250,"props":1352,"children":1353},{},[1354,1356,1362,1364,1370],{"type":179,"value":1355},"You can do this using the ",{"type":173,"tag":207,"props":1357,"children":1359},{"className":1358},[],[1360],{"type":179,"value":1361},"nitro.prerender",{"type":179,"value":1363}," option in your ",{"type":173,"tag":207,"props":1365,"children":1367},{"className":1366},[],[1368],{"type":179,"value":1369},"nuxt.config",{"type":179,"value":1076},{"type":173,"tag":654,"props":1372,"children":1375},{"className":797,"code":1373,"filename":1374,"language":800,"meta":167,"style":167},"export default defineNuxtConfig({\n  // ...\n  nitro: {\n    prerender: {\n      routes: ['/sitemap.xml']\n    }\n  }\n})\n","nuxt.config.ts",[1376],{"type":173,"tag":207,"props":1377,"children":1378},{"__ignoreMap":167},[1379,1403,1411,1427,1443,1478,1486,1493],{"type":173,"tag":665,"props":1380,"children":1381},{"class":667,"line":668},[1382,1386,1390,1395,1399],{"type":173,"tag":665,"props":1383,"children":1384},{"style":810},[1385],{"type":179,"value":914},{"type":173,"tag":665,"props":1387,"children":1388},{"style":810},[1389],{"type":179,"value":919},{"type":173,"tag":665,"props":1391,"children":1392},{"style":922},[1393],{"type":179,"value":1394}," defineNuxtConfig",{"type":173,"tag":665,"props":1396,"children":1397},{"style":822},[1398],{"type":179,"value":930},{"type":173,"tag":665,"props":1400,"children":1401},{"style":816},[1402],{"type":179,"value":1062},{"type":173,"tag":665,"props":1404,"children":1405},{"class":667,"line":594},[1406],{"type":173,"tag":665,"props":1407,"children":1408},{"style":969},[1409],{"type":179,"value":1410},"  // ...\n",{"type":173,"tag":665,"props":1412,"children":1413},{"class":667,"line":899},[1414,1419,1423],{"type":173,"tag":665,"props":1415,"children":1416},{"style":1003},[1417],{"type":179,"value":1418},"  nitro",{"type":173,"tag":665,"props":1420,"children":1421},{"style":816},[1422],{"type":179,"value":1076},{"type":173,"tag":665,"props":1424,"children":1425},{"style":816},[1426],{"type":179,"value":962},{"type":173,"tag":665,"props":1428,"children":1429},{"class":667,"line":908},[1430,1435,1439],{"type":173,"tag":665,"props":1431,"children":1432},{"style":1003},[1433],{"type":179,"value":1434},"    prerender",{"type":173,"tag":665,"props":1436,"children":1437},{"style":816},[1438],{"type":179,"value":1076},{"type":173,"tag":665,"props":1440,"children":1441},{"style":816},[1442],{"type":179,"value":962},{"type":173,"tag":665,"props":1444,"children":1445},{"class":667,"line":965},[1446,1451,1455,1460,1465,1469,1473],{"type":173,"tag":665,"props":1447,"children":1448},{"style":1003},[1449],{"type":179,"value":1450},"      routes",{"type":173,"tag":665,"props":1452,"children":1453},{"style":816},[1454],{"type":179,"value":1076},{"type":173,"tag":665,"props":1456,"children":1457},{"style":822},[1458],{"type":179,"value":1459}," [",{"type":173,"tag":665,"props":1461,"children":1462},{"style":816},[1463],{"type":179,"value":1464},"'",{"type":173,"tag":665,"props":1466,"children":1467},{"style":677},[1468],{"type":179,"value":787},{"type":173,"tag":665,"props":1470,"children":1471},{"style":816},[1472],{"type":179,"value":1464},{"type":173,"tag":665,"props":1474,"children":1475},{"style":822},[1476],{"type":179,"value":1477},"]\n",{"type":173,"tag":665,"props":1479,"children":1480},{"class":667,"line":975},[1481],{"type":173,"tag":665,"props":1482,"children":1483},{"style":816},[1484],{"type":179,"value":1485},"    }\n",{"type":173,"tag":665,"props":1487,"children":1488},{"class":667,"line":1030},[1489],{"type":173,"tag":665,"props":1490,"children":1491},{"style":816},[1492],{"type":179,"value":1257},{"type":173,"tag":665,"props":1494,"children":1495},{"class":667,"line":1065},[1496,1500],{"type":173,"tag":665,"props":1497,"children":1498},{"style":816},[1499],{"type":179,"value":1321},{"type":173,"tag":665,"props":1501,"children":1502},{"style":822},[1503],{"type":179,"value":1103},{"type":173,"tag":1505,"props":1506,"children":1507},"style",{},[1508],{"type":179,"value":1509},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":167,"searchDepth":594,"depth":594,"links":1511},[1512,1513],{"id":632,"depth":594,"text":635},{"id":735,"depth":594,"text":738},"content:6.recipes:3.sitemap.md","6.recipes/3.sitemap.md",{"_path":126,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":9,"description":1517,"body":1518,"_type":600,"_id":1916,"_source":602,"_file":1917,"_extension":604},"Install @nuxt/content in only two steps in your Nuxt project.",{"type":170,"children":1519,"toc":1913},[1520,1533,1567,1594,1694,1700,1721,1730,1855,1909],{"type":173,"tag":250,"props":1521,"children":1522},{},[1523,1525,1531],{"type":179,"value":1524},"Add ",{"type":173,"tag":207,"props":1526,"children":1528},{"className":1527},[],[1529],{"type":179,"value":1530},"@nuxt/content",{"type":179,"value":1532}," dependency to your project:",{"type":173,"tag":654,"props":1534,"children":1536},{"className":656,"code":1535,"language":659,"meta":167,"style":167},"npx nuxi@latest module add content\n",[1537],{"type":173,"tag":207,"props":1538,"children":1539},{"__ignoreMap":167},[1540],{"type":173,"tag":665,"props":1541,"children":1542},{"class":667,"line":668},[1543,1548,1553,1558,1562],{"type":173,"tag":665,"props":1544,"children":1545},{"style":672},[1546],{"type":179,"value":1547},"npx",{"type":173,"tag":665,"props":1549,"children":1550},{"style":677},[1551],{"type":179,"value":1552}," nuxi@latest",{"type":173,"tag":665,"props":1554,"children":1555},{"style":677},[1556],{"type":179,"value":1557}," module",{"type":173,"tag":665,"props":1559,"children":1560},{"style":677},[1561],{"type":179,"value":680},{"type":173,"tag":665,"props":1563,"children":1564},{"style":677},[1565],{"type":179,"value":1566}," content\n",{"type":173,"tag":250,"props":1568,"children":1569},{},[1570,1572,1577,1579,1585,1587,1593],{"type":179,"value":1571},"Then, add ",{"type":173,"tag":207,"props":1573,"children":1575},{"className":1574},[],[1576],{"type":179,"value":1530},{"type":179,"value":1578}," to the ",{"type":173,"tag":207,"props":1580,"children":1582},{"className":1581},[],[1583],{"type":179,"value":1584},"modules",{"type":179,"value":1586}," section of ",{"type":173,"tag":207,"props":1588,"children":1590},{"className":1589},[],[1591],{"type":179,"value":1592},"nuxt.config.js",{"type":179,"value":1076},{"type":173,"tag":654,"props":1595,"children":1599},{"className":1596,"code":1597,"filename":1592,"language":1598,"meta":167,"style":167},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  modules: [\n    '@nuxt/content'\n  ],\n  content: {\n    // Options\n  }\n}\n","js",[1600],{"type":173,"tag":207,"props":1601,"children":1602},{"__ignoreMap":167},[1603,1610,1627,1643,1655,1671,1679,1686],{"type":173,"tag":665,"props":1604,"children":1605},{"class":667,"line":668},[1606],{"type":173,"tag":665,"props":1607,"children":1608},{"style":816},[1609],{"type":179,"value":1062},{"type":173,"tag":665,"props":1611,"children":1612},{"class":667,"line":594},[1613,1618,1622],{"type":173,"tag":665,"props":1614,"children":1615},{"style":672},[1616],{"type":179,"value":1617},"  modules",{"type":173,"tag":665,"props":1619,"children":1620},{"style":816},[1621],{"type":179,"value":1076},{"type":173,"tag":665,"props":1623,"children":1624},{"style":1003},[1625],{"type":179,"value":1626}," [\n",{"type":173,"tag":665,"props":1628,"children":1629},{"class":667,"line":899},[1630,1635,1639],{"type":173,"tag":665,"props":1631,"children":1632},{"style":816},[1633],{"type":179,"value":1634},"    '",{"type":173,"tag":665,"props":1636,"children":1637},{"style":677},[1638],{"type":179,"value":1530},{"type":173,"tag":665,"props":1640,"children":1641},{"style":816},[1642],{"type":179,"value":850},{"type":173,"tag":665,"props":1644,"children":1645},{"class":667,"line":908},[1646,1651],{"type":173,"tag":665,"props":1647,"children":1648},{"style":1003},[1649],{"type":179,"value":1650},"  ]",{"type":173,"tag":665,"props":1652,"children":1653},{"style":816},[1654],{"type":179,"value":1209},{"type":173,"tag":665,"props":1656,"children":1657},{"class":667,"line":965},[1658,1663,1667],{"type":173,"tag":665,"props":1659,"children":1660},{"style":672},[1661],{"type":179,"value":1662},"  content",{"type":173,"tag":665,"props":1664,"children":1665},{"style":816},[1666],{"type":179,"value":1076},{"type":173,"tag":665,"props":1668,"children":1669},{"style":816},[1670],{"type":179,"value":962},{"type":173,"tag":665,"props":1672,"children":1673},{"class":667,"line":975},[1674],{"type":173,"tag":665,"props":1675,"children":1676},{"style":969},[1677],{"type":179,"value":1678},"    // Options\n",{"type":173,"tag":665,"props":1680,"children":1681},{"class":667,"line":1030},[1682],{"type":173,"tag":665,"props":1683,"children":1684},{"style":816},[1685],{"type":179,"value":1257},{"type":173,"tag":665,"props":1687,"children":1688},{"class":667,"line":1065},[1689],{"type":173,"tag":665,"props":1690,"children":1691},{"style":816},[1692],{"type":179,"value":1693},"}\n",{"type":173,"tag":174,"props":1695,"children":1697},{"id":1696},"typescript",[1698],{"type":179,"value":1699},"TypeScript",{"type":173,"tag":250,"props":1701,"children":1702},{},[1703,1705,1711,1713,1719],{"type":179,"value":1704},"Add the types to your \"types\" array in tsconfig.json after the ",{"type":173,"tag":207,"props":1706,"children":1708},{"className":1707},[],[1709],{"type":179,"value":1710},"@nuxt/types",{"type":179,"value":1712}," (Nuxt 2.9.0+) or ",{"type":173,"tag":207,"props":1714,"children":1716},{"className":1715},[],[1717],{"type":179,"value":1718},"@nuxt/vue-app",{"type":179,"value":1720}," entry.",{"type":173,"tag":250,"props":1722,"children":1723},{},[1724],{"type":173,"tag":1725,"props":1726,"children":1727},"strong",{},[1728],{"type":179,"value":1729},"tsconfig.json",{"type":173,"tag":654,"props":1731,"children":1735},{"className":1732,"code":1733,"language":1734,"meta":167,"style":167},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"compilerOptions\": {\n    \"types\": [\n      \"@nuxt/types\",\n      \"@nuxt/content\"\n    ]\n  }\n}\n","json",[1736],{"type":173,"tag":207,"props":1737,"children":1738},{"__ignoreMap":167},[1739,1746,1772,1797,1817,1833,1841,1848],{"type":173,"tag":665,"props":1740,"children":1741},{"class":667,"line":668},[1742],{"type":173,"tag":665,"props":1743,"children":1744},{"style":816},[1745],{"type":179,"value":1062},{"type":173,"tag":665,"props":1747,"children":1748},{"class":667,"line":594},[1749,1754,1759,1764,1768],{"type":173,"tag":665,"props":1750,"children":1751},{"style":816},[1752],{"type":179,"value":1753},"  \"",{"type":173,"tag":665,"props":1755,"children":1756},{"style":933},[1757],{"type":179,"value":1758},"compilerOptions",{"type":173,"tag":665,"props":1760,"children":1761},{"style":816},[1762],{"type":179,"value":1763},"\"",{"type":173,"tag":665,"props":1765,"children":1766},{"style":816},[1767],{"type":179,"value":1076},{"type":173,"tag":665,"props":1769,"children":1770},{"style":816},[1771],{"type":179,"value":962},{"type":173,"tag":665,"props":1773,"children":1774},{"class":667,"line":899},[1775,1780,1785,1789,1793],{"type":173,"tag":665,"props":1776,"children":1777},{"style":816},[1778],{"type":179,"value":1779},"    \"",{"type":173,"tag":665,"props":1781,"children":1782},{"style":672},[1783],{"type":179,"value":1784},"types",{"type":173,"tag":665,"props":1786,"children":1787},{"style":816},[1788],{"type":179,"value":1763},{"type":173,"tag":665,"props":1790,"children":1791},{"style":816},[1792],{"type":179,"value":1076},{"type":173,"tag":665,"props":1794,"children":1795},{"style":816},[1796],{"type":179,"value":1626},{"type":173,"tag":665,"props":1798,"children":1799},{"class":667,"line":908},[1800,1805,1809,1813],{"type":173,"tag":665,"props":1801,"children":1802},{"style":816},[1803],{"type":179,"value":1804},"      \"",{"type":173,"tag":665,"props":1806,"children":1807},{"style":677},[1808],{"type":179,"value":1710},{"type":173,"tag":665,"props":1810,"children":1811},{"style":816},[1812],{"type":179,"value":1763},{"type":173,"tag":665,"props":1814,"children":1815},{"style":816},[1816],{"type":179,"value":1209},{"type":173,"tag":665,"props":1818,"children":1819},{"class":667,"line":965},[1820,1824,1828],{"type":173,"tag":665,"props":1821,"children":1822},{"style":816},[1823],{"type":179,"value":1804},{"type":173,"tag":665,"props":1825,"children":1826},{"style":677},[1827],{"type":179,"value":1530},{"type":173,"tag":665,"props":1829,"children":1830},{"style":816},[1831],{"type":179,"value":1832},"\"\n",{"type":173,"tag":665,"props":1834,"children":1835},{"class":667,"line":975},[1836],{"type":173,"tag":665,"props":1837,"children":1838},{"style":816},[1839],{"type":179,"value":1840},"    ]\n",{"type":173,"tag":665,"props":1842,"children":1843},{"class":667,"line":1030},[1844],{"type":173,"tag":665,"props":1845,"children":1846},{"style":816},[1847],{"type":179,"value":1257},{"type":173,"tag":665,"props":1849,"children":1850},{"class":667,"line":1065},[1851],{"type":173,"tag":665,"props":1852,"children":1853},{"style":816},[1854],{"type":179,"value":1693},{"type":173,"tag":354,"props":1856,"children":1857},{},[1858,1866],{"type":173,"tag":250,"props":1859,"children":1860},{},[1861],{"type":173,"tag":1725,"props":1862,"children":1863},{},[1864],{"type":179,"value":1865},"Why?",{"type":173,"tag":250,"props":1867,"children":1868},{},[1869,1871,1876,1878,1884,1886,1893,1895,1900,1902,1907],{"type":179,"value":1870},"Because of the way Nuxt works the ",{"type":173,"tag":207,"props":1872,"children":1874},{"className":1873},[],[1875],{"type":179,"value":260},{"type":179,"value":1877}," property on the context has to be merged into the Nuxt ",{"type":173,"tag":207,"props":1879,"children":1881},{"className":1880},[],[1882],{"type":179,"value":1883},"Context",{"type":179,"value":1885}," interface via ",{"type":173,"tag":339,"props":1887,"children":1890},{"href":1888,"rel":1889},"https://www.typescriptlang.org/docs/handbook/declaration-merging.html",[343],[1891],{"type":179,"value":1892},"declaration merging",{"type":179,"value":1894},". Adding ",{"type":173,"tag":207,"props":1896,"children":1898},{"className":1897},[],[1899],{"type":179,"value":1530},{"type":179,"value":1901}," to your types will import the types from the package and make TypeScript aware of the additions to the ",{"type":173,"tag":207,"props":1903,"children":1905},{"className":1904},[],[1906],{"type":179,"value":1883},{"type":179,"value":1908}," interface.",{"type":173,"tag":1505,"props":1910,"children":1911},{},[1912],{"type":179,"value":1509},{"title":167,"searchDepth":594,"depth":594,"links":1914},[1915],{"id":1696,"depth":594,"text":1699},"content:7.v1:1.getting-started:2.installation.md","7.v1/1.getting-started/2.installation.md",1719304186583]