[{"data":1,"prerenderedAt":484},["ShallowReactive",2],{"navigation":3,"-docs-quick-start":224,"-docs-quick-start-surround":479},[4,83,208,214,221],{"title":5,"path":6,"stem":7,"children":8,"icon":82},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-compass",{"title":13,"path":14,"stem":15,"icon":16},"Quick Start","/docs/quick-start","1.docs/2.quick-start","i-lucide-zap",{"title":18,"path":19,"stem":20,"icon":21},"Renderer","/docs/renderer","1.docs/4.renderer","ri:layout-masonry-line",{"title":23,"path":24,"stem":25,"icon":26},"Routing","/docs/routing","1.docs/5.routing","ri:direction-line",{"title":28,"path":29,"stem":30,"icon":31},"Assets","/docs/assets","1.docs/50.assets","ri:image-2-line",{"title":33,"path":34,"stem":35,"icon":36},"Configuration","/docs/configuration","1.docs/50.configuration","ri:settings-3-line",{"title":38,"path":39,"stem":40,"icon":41},"Database","/docs/database","1.docs/50.database","ri:database-2-line",{"title":43,"path":44,"stem":45,"icon":46},"Lifecycle","/docs/lifecycle","1.docs/50.lifecycle","i-lucide-layers",{"title":48,"path":49,"stem":50,"icon":51},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":53,"path":54,"stem":55,"icon":56},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":58,"path":59,"stem":60,"icon":61},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":63,"path":64,"stem":65,"icon":66},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":68,"path":69,"stem":70,"icon":71},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":73,"path":74,"stem":75,"icon":76},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":78,"path":79,"stem":80,"icon":81},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":84,"path":85,"stem":86,"children":87,"icon":89},"Deploy","/deploy","2.deploy/0.index",[88,90,111],{"title":84,"path":85,"stem":86,"icon":89},"ri:upload-cloud-2-line",{"title":91,"path":92,"stem":93,"children":94,"page":110},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[95,100,105],{"title":96,"path":97,"stem":98,"icon":99},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":101,"path":102,"stem":103,"icon":104},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":106,"path":107,"stem":108,"icon":109},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":112,"path":113,"stem":114,"children":115,"page":110},"Providers","/deploy/providers","2.deploy/20.providers",[116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204],{"title":117,"path":118,"stem":119},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":121,"path":122,"stem":123},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":125,"path":126,"stem":127},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":129,"path":130,"stem":131},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":133,"path":134,"stem":135},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":137,"path":138,"stem":139},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":141,"path":142,"stem":143},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":145,"path":146,"stem":147},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":149,"path":150,"stem":151},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":153,"path":154,"stem":155},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":157,"path":158,"stem":159},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":161,"path":162,"stem":163},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":165,"path":166,"stem":167},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":169,"path":170,"stem":171},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":173,"path":174,"stem":175},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":177,"path":178,"stem":179},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":181,"path":182,"stem":183},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":185,"path":186,"stem":187},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":189,"path":190,"stem":191},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":193,"path":194,"stem":195},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":197,"path":198,"stem":199},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":201,"path":202,"stem":203},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":205,"path":206,"stem":207},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":209,"path":210,"stem":211,"children":212,"icon":36},"Config","/config","3.config/0.index",[213],{"title":209,"path":210,"stem":211,"icon":36},{"title":215,"path":216,"stem":217,"children":218,"icon":220},"Examples","/examples","4.examples/0.index",[219],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-folder-code",{"title":5,"path":222,"stem":223},"/","index",{"id":225,"title":13,"body":226,"description":473,"extension":474,"meta":475,"navigation":476,"path":14,"seo":477,"stem":15,"__hash__":478},"content/1.docs/2.quick-start.md",{"type":227,"value":228,"toc":464,"icon":16},"minimark",[229,236,241,244,257,261,269,291,294,305,308,312,315,457,460],[230,231,232],"warning",{},[233,234,235],"p",{},"Nitro v3 Alpha docs are a work in progress — expect updates, rough edges, and occasional inaccuracies.",[237,238,240],"h2",{"id":239},"try-nitro-online","Try Nitro online",[233,242,243],{},"Get a taste of Nitro in your browser using our playground.",[245,246,247],"card-group",{},[248,249,254],"card",{"icon":250,"target":251,"title":252,"to":253},"i-logos-stackblitz-icon","_blank","Nitro+Vite Starter","https://stackblitz.com/github/nitrojs/starter/tree/v3-vite?file=index.html,server.ts",[233,255,256],{},"Play with Nitro in your browser with a minimal vite project.",[237,258,260],{"id":259},"create-a-nitro-project","Create a Nitro project",[233,262,263,264,268],{},"The fastest way to create a Nitro application is using the ",[265,266,267],"code",{},"create-nitro-app",".",[270,271,272],"note",{},[233,273,274,275,281,282,286,287,268],{},"\nMake sure to have installed the latest LTS version of either ",[276,277,96],"a",{"href":278,"rel":279},"https://nodejs.org/en",[280],"nofollow",", ",[276,283,101],{"href":284,"rel":285},"https://bun.sh/",[280],", or ",[276,288,106],{"href":289,"rel":290},"https://deno.com/",[280],[292,293],"pm-x",{"command":267},[295,296,298,299],"div",{"style":297},"display:flex;justify-content:center;","\n  ",[300,301],"img",{"src":302,"alt":303,"style":304},"https://github.com/nitrojs/create-nitro-app/blob/main/.images/preview.png?raw=true","Preview","max-width:100%;height:auto;display:block;",[233,306,307],{},"Follow the instructions from the CLI and you will be ready to start your development server.",[237,309,311],{"id":310},"add-to-a-vite-project","Add to a Vite project",[233,313,314],{},"To add Nitro to an existing Vite project, follow these instructions:",[316,317,319,328,331,335],"steps",{"level":318},"3",[320,321,323,324,327],"h3",{"id":322},"install-nitro-package","Install ",[265,325,326],{},"nitro"," package",[329,330],"pm-install",{"name":326},[320,332,334],{"id":333},"add-nitro-plugin","Add Nitro plugin",[336,337,345],"pre",{"className":338,"code":339,"filename":340,"highlights":341,"language":344,"meta":5,"style":5},"language-js shiki shiki-themes github-light github-dark github-dark","import { defineConfig } from \"vite\";\nimport { nitro } from \"nitro/vite\";\n\nexport default defineConfig({\n  plugins: [\n    nitro()\n  ],\n  nitro: {\n    serverDir: './'\n  }\n});\n","vite.config.mjs",[342,343],2,6,"js",[265,346,347,370,386,393,409,415,424,430,436,445,451],{"__ignoreMap":5},[348,349,352,356,360,363,367],"span",{"class":350,"line":351},"line",1,[348,353,355],{"class":354},"so5gQ","import",[348,357,359],{"class":358},"slsVL"," { defineConfig } ",[348,361,362],{"class":354},"from",[348,364,366],{"class":365},"sfrk1"," \"vite\"",[348,368,369],{"class":358},";\n",[348,371,374,376,379,381,384],{"class":372,"line":342},[350,373],"highlight",[348,375,355],{"class":354},[348,377,378],{"class":358}," { nitro } ",[348,380,362],{"class":354},[348,382,383],{"class":365}," \"nitro/vite\"",[348,385,369],{"class":358},[348,387,389],{"class":350,"line":388},3,[348,390,392],{"emptyLinePlaceholder":391},true,"\n",[348,394,396,399,402,406],{"class":350,"line":395},4,[348,397,398],{"class":354},"export",[348,400,401],{"class":354}," default",[348,403,405],{"class":404},"shcOC"," defineConfig",[348,407,408],{"class":358},"({\n",[348,410,412],{"class":350,"line":411},5,[348,413,414],{"class":358},"  plugins: [\n",[348,416,418,421],{"class":417,"line":343},[350,373],[348,419,420],{"class":404},"    nitro",[348,422,423],{"class":358},"()\n",[348,425,427],{"class":350,"line":426},7,[348,428,429],{"class":358},"  ],\n",[348,431,433],{"class":350,"line":432},8,[348,434,435],{"class":358},"  nitro: {\n",[348,437,439,442],{"class":350,"line":438},9,[348,440,441],{"class":358},"    serverDir: ",[348,443,444],{"class":365},"'./'\n",[348,446,448],{"class":350,"line":447},10,[348,449,450],{"class":358},"  }\n",[348,452,454],{"class":350,"line":453},11,[348,455,456],{"class":358},"});\n",[233,458,459],{},"That's it, you can now add server and API routes to your Vite project!",[461,462,463],"style",{},"html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}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);}",{"title":5,"searchDepth":342,"depth":342,"links":465},[466,467,468],{"id":239,"depth":342,"text":240},{"id":259,"depth":342,"text":260},{"id":310,"depth":342,"text":311,"children":469},[470,472],{"id":322,"depth":388,"text":471},"Install nitro package",{"id":333,"depth":388,"text":334},"Start with a fresh Nitro project or adopt it in your current Vite project.","md",{"icon":16},{"icon":16},{"title":13,"description":473},"Yf2gwdmEDbuEQR4wdaRT9EEf6ZLjnHxdaiIJAgpRJfo",[480,482],{"title":10,"path":6,"stem":7,"description":481,"icon":11,"children":-1},"Nitro is a full-stack framework, compatible with any runtime. It extends your Vite application with a production-ready server.",{"title":18,"path":19,"stem":20,"description":483,"icon":21,"children":-1},"Use a renderer to handle all unmatched routes with custom HTML or a templating system.",1773049788487]