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