[{"data":1,"prerenderedAt":447},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fgetting-started\u002Finstallation":137,"\u002Fdocs\u002Fgetting-started\u002Finstallation-surround":442},[4,123],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":113},"Docs","i-lucide-book","\u002Fdocs","docs",[10,34,58,73,84,95,114],{"title":11,"path":12,"stem":13,"children":14,"icon":33},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[15,17,21,25,29],{"title":16,"path":12,"stem":13},"Introduction",{"title":18,"path":19,"stem":20},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation",{"title":22,"path":23,"stem":24},"Deploy","\u002Fdocs\u002Fgetting-started\u002Fdeploy","docs\u002F1.getting-started\u002F3.deploy",{"title":26,"path":27,"stem":28},"Migration","\u002Fdocs\u002Fgetting-started\u002Fmigration","docs\u002F1.getting-started\u002F4.migration",{"title":30,"path":31,"stem":32},"Environments","\u002Fdocs\u002Fgetting-started\u002Fenvironments","docs\u002F1.getting-started\u002F5.environments","i-lucide-rocket",{"title":35,"path":36,"stem":37,"children":38,"icon":57},"Database","\u002Fdocs\u002Fdatabase","docs\u002F2.database\u002F1.index",[39,41,45,49,53],{"title":40,"path":36,"stem":37},"Setup",{"title":42,"path":43,"stem":44},"Schema","\u002Fdocs\u002Fdatabase\u002Fschema","docs\u002F2.database\u002F2.schema",{"title":46,"path":47,"stem":48},"Queries","\u002Fdocs\u002Fdatabase\u002Fquery","docs\u002F2.database\u002F3.query",{"title":50,"path":51,"stem":52},"Migrations","\u002Fdocs\u002Fdatabase\u002Fmigrations","docs\u002F2.database\u002F4.migrations",{"title":54,"path":55,"stem":56},"CLI","\u002Fdocs\u002Fdatabase\u002Fcli","docs\u002F2.database\u002Fcli","i-lucide-database",{"title":59,"path":60,"stem":61,"children":62,"icon":72},"Blob","\u002Fdocs\u002Fblob","docs\u002F3.blob\u002F1.index",[63,64,68],{"title":40,"path":60,"stem":61},{"title":65,"path":66,"stem":67},"Upload","\u002Fdocs\u002Fblob\u002Fupload","docs\u002F3.blob\u002F2.upload",{"title":69,"path":70,"stem":71},"Blob SDK","\u002Fdocs\u002Fblob\u002Fusage","docs\u002F3.blob\u002F3.usage","i-lucide-shapes",{"title":74,"path":75,"stem":76,"children":77,"icon":83},"Key Value","\u002Fdocs\u002Fkv","docs\u002F4.kv\u002F1.index",[78,79],{"title":40,"path":75,"stem":76},{"title":80,"path":81,"stem":82},"KV SDK","\u002Fdocs\u002Fkv\u002Fusage","docs\u002F4.kv\u002F2.usage","i-lucide-list",{"title":85,"path":86,"stem":87,"children":88,"icon":94},"Cache","\u002Fdocs\u002Fcache","docs\u002F5.cache\u002F1.index",[89,90],{"title":40,"path":86,"stem":87},{"title":91,"path":92,"stem":93},"Usage","\u002Fdocs\u002Fcache\u002Fusage","docs\u002F5.cache\u002F2.usage","i-lucide-zap",{"title":96,"icon":97,"path":98,"stem":99,"children":100,"page":113},"Guides","i-lucide-book-text","\u002Fdocs\u002Fguides","docs\u002F6.guides",[101,105,109],{"title":102,"path":103,"stem":104},"Pre-rendering","\u002Fdocs\u002Fguides\u002Fpre-rendering","docs\u002F6.guides\u002F1.pre-rendering",{"title":106,"path":107,"stem":108},"Realtime","\u002Fdocs\u002Fguides\u002Frealtime","docs\u002F6.guides\u002F2.realtime",{"title":110,"path":111,"stem":112},"CI\u002FCD","\u002Fdocs\u002Fguides\u002Fci-cd","docs\u002F6.guides\u002F3.ci-cd",false,{"title":115,"path":116,"stem":117,"children":118,"page":113},"Reference","\u002Fdocs\u002Freference","docs\u002F7.reference",[119],{"title":120,"path":121,"stem":122},"Environment Variables","\u002Fdocs\u002Freference\u002Fenvironment-variables","docs\u002F7.reference\u002F1.environment-variables",{"title":124,"icon":125,"path":126,"stem":127,"children":128,"page":113},"Changelog","i-lucide-megaphone","\u002Fchangelog","changelog",[129,133],{"title":130,"path":131,"stem":132},"NuxtHub Multi-Vendor is now available","\u002Fchangelog\u002Fnuxthub-multi-vendor","changelog\u002Fnuxthub-multi-vendor",{"title":134,"path":135,"stem":136},"Self-Hosting First & Cloud-Agnostic Future","\u002Fchangelog\u002Fself-hosting-first","changelog\u002Fself-hosting-first",{"id":138,"title":18,"body":139,"description":435,"extension":436,"links":437,"meta":438,"navigation":439,"path":19,"seo":440,"stem":20,"__hash__":441},"docs\u002Fdocs\u002F1.getting-started\u002F2.installation.md",{"type":140,"value":141,"toc":431},"minimark",[142,147,154,187,203,206,218,222,229,316,419,427],[143,144,146],"h2",{"id":145},"add-to-a-nuxt-project","Add to a Nuxt project",[148,149,150],"ol",{},[151,152,153],"li",{},"Install the NuxtHub module to your project:",[155,156,162],"pre",{"className":157,"code":158,"filename":159,"language":160,"meta":161,"style":161},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx nuxi module add hub\n","Terminal","bash","",[163,164,165],"code",{"__ignoreMap":161},[166,167,170,174,178,181,184],"span",{"class":168,"line":169},"line",1,[166,171,173],{"class":172},"sBMFI","npx",[166,175,177],{"class":176},"sfazB"," nuxi",[166,179,180],{"class":176}," module",[166,182,183],{"class":176}," add",[166,185,186],{"class":176}," hub\n",[188,189,190,191,194,195,198,199,202],"p",{},"This command will install ",[163,192,193],{},"@nuxthub\u002Fcore"," as dependency and add it to your ",[163,196,197],{},"modules"," section of your ",[163,200,201],{},"nuxt.config",".",[188,204,205],{},"That's it! You can now use NuxtHub features in your Nuxt project.",[207,208,209,210,213,214,217],"note",{},"NuxtHub will create a ",[163,211,212],{},".data"," directory in your project root, which contains the necessary configuration files and resources for the features to work. It will also add it to the ",[163,215,216],{},".gitignore"," file to avoid committing it to your repository.",[143,219,221],{"id":220},"options","Options",[188,223,224,225,228],{},"Configure options in your ",[163,226,227],{},"nuxt.config.ts"," as such:",[155,230,234],{"className":231,"code":232,"filename":227,"language":233,"meta":161,"style":161},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore'],\n  hub: {\n    \u002F\u002F NuxtHub options\n  }\n})\n","ts",[163,235,236,257,283,294,301,307],{"__ignoreMap":161},[166,237,238,242,245,249,253],{"class":168,"line":169},[166,239,241],{"class":240},"s7zQu","export",[166,243,244],{"class":240}," default",[166,246,248],{"class":247},"s2Zo4"," defineNuxtConfig",[166,250,252],{"class":251},"sTEyZ","(",[166,254,256],{"class":255},"sMK4o","{\n",[166,258,260,264,267,270,273,275,277,280],{"class":168,"line":259},2,[166,261,263],{"class":262},"swJcz","  modules",[166,265,266],{"class":255},":",[166,268,269],{"class":251}," [",[166,271,272],{"class":255},"'",[166,274,193],{"class":176},[166,276,272],{"class":255},[166,278,279],{"class":251},"]",[166,281,282],{"class":255},",\n",[166,284,286,289,291],{"class":168,"line":285},3,[166,287,288],{"class":262},"  hub",[166,290,266],{"class":255},[166,292,293],{"class":255}," {\n",[166,295,297],{"class":168,"line":296},4,[166,298,300],{"class":299},"sHwdD","    \u002F\u002F NuxtHub options\n",[166,302,304],{"class":168,"line":303},5,[166,305,306],{"class":255},"  }\n",[166,308,310,313],{"class":168,"line":309},6,[166,311,312],{"class":255},"}",[166,314,315],{"class":251},")\n",[317,318,319,341,364,396,411],"field-group",{},[320,321,324,325,328,329,332,333,336,337,340],"field",{"name":322,"type":323},"blob","boolean | BlobConfig","Default to ",[163,326,327],{},"false"," - Enables blob storage to store static assets, such as images, videos and more. Set to ",[163,330,331],{},"true"," for auto-configuration based on your hosting provider (Cloudflare R2, Vercel Blob, AWS S3, etc.), or provide a ",[163,334,335],{},"BlobConfig"," object with ",[163,338,339],{},"driver"," and driver-specific options.",[320,342,324,345,347,348,351,352,355,356,358,359,336,362,340],{"name":343,"type":344},"cache","boolean | CacheConfig",[163,346,327],{}," - Enables cache storage to cache your server route responses or functions using Nitro's ",[163,349,350],{},"cachedEventHandler"," and ",[163,353,354],{},"cachedFunction",". Set to ",[163,357,331],{}," for auto-configuration based on your hosting provider, or provide a ",[163,360,361],{},"CacheConfig",[163,363,339],{},[320,365,324,368,370,371,374,375,378,379,382,383,336,386,374,389,391,392,395],{"name":366,"type":367},"db","'postgresql' | 'sqlite' | 'mysql' | DatabaseConfig",[163,369,327],{}," - Enables SQL database to store your application's data. Set to a dialect string (",[163,372,373],{},"'postgresql'",", ",[163,376,377],{},"'sqlite'",", or ",[163,380,381],{},"'mysql'",") for zero-config setup, or provide a ",[163,384,385],{},"DatabaseConfig",[163,387,388],{},"dialect",[163,390,339],{},", and ",[163,393,394],{},"connection"," details.",[320,397,324,400,402,403,405,406,336,409,340],{"name":398,"type":399},"kv","boolean | KVConfig",[163,401,327],{}," - Enables Key-Value storage to store JSON data. Set to ",[163,404,331],{}," for auto-configuration based on your hosting provider (Cloudflare KV, Vercel Redis, Deno KV), or provide a ",[163,407,408],{},"KVConfig",[163,410,339],{},[320,412,324,415,418],{"name":413,"type":414},"dir","string",[163,416,417],{},"'.data'"," - The directory used for storage (database, kv, cache, etc.) during local development.",[420,421,422,423,202],"tip",{"icon":33},"You're all set! Now, let's dive into ",[424,425,426],"a",{"href":23},"deploying it",[428,429,430],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":161,"searchDepth":259,"depth":259,"links":432},[433,434],{"id":145,"depth":259,"text":146},{"id":220,"depth":259,"text":221},"Learn how to create a NuxtHub project or add it to your current Nuxt project.","md",null,{},true,{"title":18,"description":435},"Em661bkQZ1Q-Pd2DZk2wetYy35byUX1X4CRnYpzKvgI",[443,445],{"title":16,"path":12,"stem":13,"description":444,"children":-1},"NuxtHub helps you build and deploy full-stack Nuxt applications.",{"title":22,"path":23,"stem":24,"description":446,"children":-1},"Learn how to host a full-stack Nuxt application with minimal configuration.",1793527282670]