[{"data":1,"prerenderedAt":720},["ShallowReactive",2],{"navigation_docs":3,"-docs-advanced-raw-content":205,"-docs-advanced-raw-content-surround":715},[4,24,51,73,95,112,158,171],{"title":5,"path":6,"stem":7,"children":8,"icon":23},"Getting Started","/docs/getting-started","docs/1.getting-started/1.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Introduction",{"title":12,"path":13,"stem":14},"Installation","/docs/getting-started/installation","docs/1.getting-started/2.installation",{"title":16,"path":17,"stem":18},"Configuration","/docs/getting-started/configuration","docs/1.getting-started/3.configuration",{"title":20,"path":21,"stem":22},"Migration","/docs/getting-started/migration","docs/1.getting-started/4.migration","i-lucide-square-play",{"title":25,"icon":26,"path":27,"stem":28,"children":29,"page":50},"Collections","i-lucide-database","/docs/collections","docs/2.collections",[30,34,38,42,46],{"title":31,"path":32,"stem":33},"Define","/docs/collections/define","docs/2.collections/1.define",{"title":35,"path":36,"stem":37},"Types","/docs/collections/types","docs/2.collections/2.types",{"title":39,"path":40,"stem":41},"Sources","/docs/collections/sources","docs/2.collections/3.sources",{"title":43,"path":44,"stem":45},"Validators","/docs/collections/validators","docs/2.collections/4.validators",{"title":47,"path":48,"stem":49},"Components","/docs/collections/inherit-schema-from-component","docs/2.collections/5.inherit-schema-from-component",false,{"title":52,"icon":53,"path":54,"stem":55,"children":56,"page":50},"Files","i-lucide-file","/docs/files","docs/3.files",[57,61,65,69],{"title":58,"path":59,"stem":60},"Markdown","/docs/files/markdown","docs/3.files/1.markdown",{"title":62,"path":63,"stem":64},"YAML","/docs/files/yaml","docs/3.files/2.yaml",{"title":66,"path":67,"stem":68},"JSON","/docs/files/json","docs/3.files/3.json",{"title":70,"path":71,"stem":72},"CSV","/docs/files/csv","docs/3.files/4.csv",{"title":74,"icon":75,"path":76,"stem":77,"children":78,"page":50},"Query Utils","i-lucide-square-function","/docs/utils","docs/4.utils",[79,83,87,91],{"title":80,"path":81,"stem":82},"queryCollection","/docs/utils/query-collection","docs/4.utils/1.query-collection",{"title":84,"path":85,"stem":86},"queryCollectionNavigation","/docs/utils/query-collection-navigation","docs/4.utils/2.query-collection-navigation",{"title":88,"path":89,"stem":90},"queryCollectionItemSurroundings","/docs/utils/query-collection-item-surroundings","docs/4.utils/3.query-collection-item-surroundings",{"title":92,"path":93,"stem":94},"queryCollectionSearchSections","/docs/utils/query-collection-search-sections","docs/4.utils/4.query-collection-search-sections",{"title":47,"icon":96,"path":97,"stem":98,"children":99,"page":50},"i-lucide-square-code","/docs/components","docs/5.components",[100,104,108],{"title":101,"path":102,"stem":103},"ContentRenderer","/docs/components/content-renderer","docs/5.components/0.content-renderer",{"title":105,"path":106,"stem":107},"Slot","/docs/components/slot","docs/5.components/1.slot",{"title":109,"path":110,"stem":111},"Prose Components","/docs/components/prose","docs/5.components/2.prose",{"title":113,"icon":114,"path":115,"stem":116,"children":117,"page":50},"Deploy","i-lucide-cloud-upload","/docs/deploy","docs/6.deploy",[118,122,126,130,134,138,142,146,150,154],{"title":119,"path":120,"stem":121},"Server","/docs/deploy/server","docs/6.deploy/1.server",{"title":123,"path":124,"stem":125},"Static","/docs/deploy/static","docs/6.deploy/10.static",{"title":127,"path":128,"stem":129},"Serverless","/docs/deploy/serverless","docs/6.deploy/2.serverless",{"title":131,"path":132,"stem":133},"NuxtHub","/docs/deploy/nuxthub","docs/6.deploy/3.nuxthub",{"title":135,"path":136,"stem":137},"Cloudflare Pages","/docs/deploy/cloudflare-pages","docs/6.deploy/4.cloudflare-pages",{"title":139,"path":140,"stem":141},"Cloudflare Workers","/docs/deploy/cloudflare-workers","docs/6.deploy/5.cloudflare-workers",{"title":143,"path":144,"stem":145},"Vercel","/docs/deploy/vercel","docs/6.deploy/6.vercel",{"title":147,"path":148,"stem":149},"Netlify","/docs/deploy/netlify","docs/6.deploy/7.netlify",{"title":151,"path":152,"stem":153},"AWS Amplify","/docs/deploy/aws-amplify","docs/6.deploy/8.aws-amplify",{"title":155,"path":156,"stem":157},"Docker","/docs/deploy/docker","docs/6.deploy/9.docker",{"title":159,"icon":114,"path":160,"stem":161,"children":162,"page":50},"Integrations","/docs/integrations","docs/7.integrations",[163,167],{"title":164,"path":165,"stem":166},"Nuxt i18n","/docs/integrations/i18n","docs/7.integrations/01.i18n",{"title":168,"path":169,"stem":170},"Nuxt LLMs","/docs/integrations/llms","docs/7.integrations/02.llms",{"title":172,"icon":173,"path":174,"stem":175,"children":176,"page":50},"Advanced","i-lucide-code-xml","/docs/advanced","docs/8.advanced",[177,181,185,189,193,197,201],{"title":178,"path":179,"stem":180},"Full-Text Search","/docs/advanced/fulltext-search","docs/8.advanced/1.fulltext-search",{"title":182,"path":183,"stem":184},"Raw Content","/docs/advanced/raw-content","docs/8.advanced/2.raw-content",{"title":186,"path":187,"stem":188},"SQL Storage","/docs/advanced/database","docs/8.advanced/3.database",{"title":190,"path":191,"stem":192},"Debugging tools","/docs/advanced/tools","docs/8.advanced/4.tools",{"title":194,"path":195,"stem":196},"Hooks","/docs/advanced/hooks","docs/8.advanced/5.hooks",{"title":198,"path":199,"stem":200},"Custom Source","/docs/advanced/custom-source","docs/8.advanced/6.custom-source",{"title":202,"path":203,"stem":204},"Transformers","/docs/advanced/transformers","docs/8.advanced/8.transformers",{"id":206,"title":182,"body":207,"description":710,"extension":662,"links":711,"meta":712,"navigation":242,"path":183,"seo":713,"stem":184,"__hash__":714},"docs/docs/8.advanced/2.raw-content.md",{"type":208,"value":209,"toc":708},"minimark",[210,214,222,225,457,464,644,657,693,704],[211,212,213],"p",{},"There were lots of requests in Content version 2 about accessing contents raw data in production. In Content version 3 it is possible to ship contents raw data to production.",[211,215,216,217,221],{},"In order to ship raw contents to production you need to define ",[218,219,220],"code",{},"rawbody"," field in your collection's schema. That's it.",[211,223,224],{},"Nuxt Content will detect this magical field in your schema and fill it with the raw content.",[226,227,233],"pre",{"className":228,"code":229,"filename":230,"language":231,"meta":232,"style":232},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\nimport { defineCollection, defineContentConfig } from '@nuxt/content'\nimport { z } from 'zod'\n\nexport default defineContentConfig({\n  collections: {\n    docs: defineCollection({\n      source: '**',\n      type: 'page',\n      schema: z.object({\n        rawbody: z.string()\n      })\n    })\n  }\n})\n","content.config.ts","ts","",[218,234,235,244,281,302,307,325,338,352,371,388,408,426,435,443,449],{"__ignoreMap":232},[236,237,240],"span",{"class":238,"line":239},"line",1,[236,241,243],{"emptyLinePlaceholder":242},true,"\n",[236,245,247,251,255,259,262,265,268,271,274,278],{"class":238,"line":246},2,[236,248,250],{"class":249},"s7zQu","import",[236,252,254],{"class":253},"sMK4o"," {",[236,256,258],{"class":257},"sTEyZ"," defineCollection",[236,260,261],{"class":253},",",[236,263,264],{"class":257}," defineContentConfig",[236,266,267],{"class":253}," }",[236,269,270],{"class":249}," from",[236,272,273],{"class":253}," '",[236,275,277],{"class":276},"sfazB","@nuxt/content",[236,279,280],{"class":253},"'\n",[236,282,284,286,288,291,293,295,297,300],{"class":238,"line":283},3,[236,285,250],{"class":249},[236,287,254],{"class":253},[236,289,290],{"class":257}," z",[236,292,267],{"class":253},[236,294,270],{"class":249},[236,296,273],{"class":253},[236,298,299],{"class":276},"zod",[236,301,280],{"class":253},[236,303,305],{"class":238,"line":304},4,[236,306,243],{"emptyLinePlaceholder":242},[236,308,310,313,316,319,322],{"class":238,"line":309},5,[236,311,312],{"class":249},"export",[236,314,315],{"class":249}," default",[236,317,264],{"class":318},"s2Zo4",[236,320,321],{"class":257},"(",[236,323,324],{"class":253},"{\n",[236,326,328,332,335],{"class":238,"line":327},6,[236,329,331],{"class":330},"swJcz","  collections",[236,333,334],{"class":253},":",[236,336,337],{"class":253}," {\n",[236,339,341,344,346,348,350],{"class":238,"line":340},7,[236,342,343],{"class":330},"    docs",[236,345,334],{"class":253},[236,347,258],{"class":318},[236,349,321],{"class":257},[236,351,324],{"class":253},[236,353,355,358,360,362,365,368],{"class":238,"line":354},8,[236,356,357],{"class":330},"      source",[236,359,334],{"class":253},[236,361,273],{"class":253},[236,363,364],{"class":276},"**",[236,366,367],{"class":253},"'",[236,369,370],{"class":253},",\n",[236,372,374,377,379,381,384,386],{"class":238,"line":373},9,[236,375,376],{"class":330},"      type",[236,378,334],{"class":253},[236,380,273],{"class":253},[236,382,383],{"class":276},"page",[236,385,367],{"class":253},[236,387,370],{"class":253},[236,389,391,394,396,398,401,404,406],{"class":238,"line":390},10,[236,392,393],{"class":330},"      schema",[236,395,334],{"class":253},[236,397,290],{"class":257},[236,399,400],{"class":253},".",[236,402,403],{"class":318},"object",[236,405,321],{"class":257},[236,407,324],{"class":253},[236,409,411,414,416,418,420,423],{"class":238,"line":410},11,[236,412,413],{"class":330},"        rawbody",[236,415,334],{"class":253},[236,417,290],{"class":257},[236,419,400],{"class":253},[236,421,422],{"class":318},"string",[236,424,425],{"class":257},"()\n",[236,427,429,432],{"class":238,"line":428},12,[236,430,431],{"class":253},"      }",[236,433,434],{"class":257},")\n",[236,436,438,441],{"class":238,"line":437},13,[236,439,440],{"class":253},"    }",[236,442,434],{"class":257},[236,444,446],{"class":238,"line":445},14,[236,447,448],{"class":253},"  }\n",[236,450,452,455],{"class":238,"line":451},15,[236,453,454],{"class":253},"}",[236,456,434],{"class":257},[211,458,459,460,463],{},"And you can use ",[218,461,462],{},"queryCollection()"," to fetch the raw content.",[226,465,470],{"className":466,"code":467,"filename":468,"language":469,"meta":232,"style":232},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst route = useRoute()\nconst { data } = useAsyncData('page-' + route.path, () => queryCollection('docs').path(route.path).first())\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cpre>{{ data.rawbody }}\u003C/pre>\n\u003C/template>\n","pages/index.vue","vue",[218,471,472,500,515,595,604,608,617,636],{"__ignoreMap":232},[236,473,474,477,480,484,487,490,493,495,497],{"class":238,"line":239},[236,475,476],{"class":253},"\u003C",[236,478,479],{"class":330},"script",[236,481,483],{"class":482},"spNyl"," setup",[236,485,486],{"class":482}," lang",[236,488,489],{"class":253},"=",[236,491,492],{"class":253},"\"",[236,494,231],{"class":276},[236,496,492],{"class":253},[236,498,499],{"class":253},">\n",[236,501,502,505,508,510,513],{"class":238,"line":246},[236,503,504],{"class":482},"const",[236,506,507],{"class":257}," route ",[236,509,489],{"class":253},[236,511,512],{"class":318}," useRoute",[236,514,425],{"class":257},[236,516,517,519,521,524,526,529,532,534,536,539,541,544,547,549,552,554,557,560,563,565,567,570,572,575,577,579,582,584,587,589,592],{"class":238,"line":283},[236,518,504],{"class":482},[236,520,254],{"class":253},[236,522,523],{"class":257}," data ",[236,525,454],{"class":253},[236,527,528],{"class":253}," =",[236,530,531],{"class":318}," useAsyncData",[236,533,321],{"class":257},[236,535,367],{"class":253},[236,537,538],{"class":276},"page-",[236,540,367],{"class":253},[236,542,543],{"class":253}," +",[236,545,546],{"class":257}," route",[236,548,400],{"class":253},[236,550,551],{"class":257},"path",[236,553,261],{"class":253},[236,555,556],{"class":253}," ()",[236,558,559],{"class":482}," =>",[236,561,562],{"class":318}," queryCollection",[236,564,321],{"class":257},[236,566,367],{"class":253},[236,568,569],{"class":276},"docs",[236,571,367],{"class":253},[236,573,574],{"class":257},")",[236,576,400],{"class":253},[236,578,551],{"class":318},[236,580,581],{"class":257},"(route",[236,583,400],{"class":253},[236,585,586],{"class":257},"path)",[236,588,400],{"class":253},[236,590,591],{"class":318},"first",[236,593,594],{"class":257},"())\n",[236,596,597,600,602],{"class":238,"line":304},[236,598,599],{"class":253},"\u003C/",[236,601,479],{"class":330},[236,603,499],{"class":253},[236,605,606],{"class":238,"line":309},[236,607,243],{"emptyLinePlaceholder":242},[236,609,610,612,615],{"class":238,"line":327},[236,611,476],{"class":253},[236,613,614],{"class":330},"template",[236,616,499],{"class":253},[236,618,619,622,624,627,630,632,634],{"class":238,"line":340},[236,620,621],{"class":253},"  \u003C",[236,623,226],{"class":330},[236,625,626],{"class":253},">",[236,628,629],{"class":257},"{{ data.rawbody }}",[236,631,599],{"class":253},[236,633,226],{"class":330},[236,635,499],{"class":253},[236,637,638,640,642],{"class":238,"line":354},[236,639,599],{"class":253},[236,641,614],{"class":330},[236,643,499],{"class":253},[211,645,646,647,650,651,653,654,656],{},"In case you don't want to ship raw content of a specific file you can add ",[218,648,649],{},"rawbody: ''"," to frontmatter of that file. The auto filled value of ",[218,652,220],{}," is acting like default value and when you define ",[218,655,220],{}," in the frontmatter it will overwritten.",[226,658,663],{"className":659,"code":660,"filename":661,"language":662,"meta":232,"style":232},"language-md shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","---\ntitle: My page\nrawbody: ''\n---\n\n","content.md","md",[218,664,665,670,680,689],{"__ignoreMap":232},[236,666,667],{"class":238,"line":239},[236,668,669],{"class":253},"---\n",[236,671,672,675,677],{"class":238,"line":246},[236,673,674],{"class":330},"title",[236,676,334],{"class":253},[236,678,679],{"class":276}," My page\n",[236,681,682,684,686],{"class":238,"line":283},[236,683,220],{"class":330},[236,685,334],{"class":253},[236,687,688],{"class":253}," ''\n",[236,690,691],{"class":238,"line":304},[236,692,669],{"class":253},[694,695,696,697,699,700,703],"callout",{},"It is important to fill frontmatter fields with a same type of data that is defined in collection schema. In this case ",[218,698,220],{}," is a string, and you should consider passing empty string. Do not use ",[218,701,702],{},"boolean"," or other type of values.",[705,706,707],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":232,"searchDepth":246,"depth":246,"links":709},[],"Access to contents raw data in appliction",null,{},{"title":182,"description":710},"RgSFTU3N6MC7i1uZRkTMQJ1nWQZnhrL3T1kqFodUDAI",[716,718],{"title":178,"path":179,"stem":180,"description":717,"children":-1},"Implement full-text search in your website using Nuxt Content",{"title":186,"path":187,"stem":188,"description":719,"children":-1},"How Nuxt Content stores and retrieves content",1774543464796]