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