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