[{"data":1,"prerenderedAt":477},["ShallowReactive",2],{"navigation":3,"-docs-quick-start":217,"-docs-quick-start-surround":472},[4,83,208,214],{"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":5,"path":215,"stem":216},"/","index",{"id":218,"title":13,"body":219,"description":466,"extension":467,"meta":468,"navigation":469,"path":14,"seo":470,"stem":15,"__hash__":471},"content/1.docs/2.quick-start.md",{"type":220,"value":221,"toc":457,"icon":16},"minimark",[222,229,234,237,250,254,262,284,287,298,301,305,308,450,453],[223,224,225],"warning",{},[226,227,228],"p",{},"Nitro v3 Alpha docs are a work in progress — expect updates, rough edges, and occasional inaccuracies.",[230,231,233],"h2",{"id":232},"try-nitro-online","Try Nitro online",[226,235,236],{},"Get a taste of Nitro in your browser using our playground.",[238,239,240],"card-group",{},[241,242,247],"card",{"icon":243,"target":244,"title":245,"to":246},"i-logos-stackblitz-icon","_blank","Nitro+Vite Starter","https://stackblitz.com/github/nitrojs/starter/tree/v3-vite?file=index.html,server.ts",[226,248,249],{},"Play with Nitro in your browser with a minimal vite project.",[230,251,253],{"id":252},"create-a-nitro-project","Create a Nitro project",[226,255,256,257,261],{},"The fastest way to create a Nitro application is using the ",[258,259,260],"code",{},"create-nitro-app",".",[263,264,265],"note",{},[226,266,267,268,274,275,279,280,261],{},"\nMake sure to have installed the latest LTS version of either ",[269,270,96],"a",{"href":271,"rel":272},"https://nodejs.org/en",[273],"nofollow",", ",[269,276,101],{"href":277,"rel":278},"https://bun.sh/",[273],", or ",[269,281,106],{"href":282,"rel":283},"https://deno.com/",[273],[285,286],"pm-x",{"command":260},[288,289,291,292],"div",{"style":290},"display:flex;justify-content:center;","\n  ",[293,294],"img",{"src":295,"alt":296,"style":297},"https://github.com/nitrojs/create-nitro-app/blob/main/.images/preview.png?raw=true","Preview","max-width:100%;height:auto;display:block;",[226,299,300],{},"Follow the instructions from the CLI and you will be ready to start your development server.",[230,302,304],{"id":303},"add-to-a-vite-project","Add to a Vite project",[226,306,307],{},"To add Nitro to an existing Vite project, follow these instructions:",[309,310,312,321,324,328],"steps",{"level":311},"3",[313,314,316,317,320],"h3",{"id":315},"install-nitro-package","Install ",[258,318,319],{},"nitro"," package",[322,323],"pm-install",{"name":319},[313,325,327],{"id":326},"add-nitro-plugin","Add Nitro plugin",[329,330,338],"pre",{"className":331,"code":332,"filename":333,"highlights":334,"language":337,"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",[335,336],2,6,"js",[258,339,340,363,379,386,402,408,417,423,429,438,444],{"__ignoreMap":5},[341,342,345,349,353,356,360],"span",{"class":343,"line":344},"line",1,[341,346,348],{"class":347},"so5gQ","import",[341,350,352],{"class":351},"slsVL"," { defineConfig } ",[341,354,355],{"class":347},"from",[341,357,359],{"class":358},"sfrk1"," \"vite\"",[341,361,362],{"class":351},";\n",[341,364,367,369,372,374,377],{"class":365,"line":335},[343,366],"highlight",[341,368,348],{"class":347},[341,370,371],{"class":351}," { nitro } ",[341,373,355],{"class":347},[341,375,376],{"class":358}," \"nitro/vite\"",[341,378,362],{"class":351},[341,380,382],{"class":343,"line":381},3,[341,383,385],{"emptyLinePlaceholder":384},true,"\n",[341,387,389,392,395,399],{"class":343,"line":388},4,[341,390,391],{"class":347},"export",[341,393,394],{"class":347}," default",[341,396,398],{"class":397},"shcOC"," defineConfig",[341,400,401],{"class":351},"({\n",[341,403,405],{"class":343,"line":404},5,[341,406,407],{"class":351},"  plugins: [\n",[341,409,411,414],{"class":410,"line":336},[343,366],[341,412,413],{"class":397},"    nitro",[341,415,416],{"class":351},"()\n",[341,418,420],{"class":343,"line":419},7,[341,421,422],{"class":351},"  ],\n",[341,424,426],{"class":343,"line":425},8,[341,427,428],{"class":351},"  nitro: {\n",[341,430,432,435],{"class":343,"line":431},9,[341,433,434],{"class":351},"    serverDir: ",[341,436,437],{"class":358},"'./'\n",[341,439,441],{"class":343,"line":440},10,[341,442,443],{"class":351},"  }\n",[341,445,447],{"class":343,"line":446},11,[341,448,449],{"class":351},"});\n",[226,451,452],{},"That's it, you can now add server and API routes to your Vite project!",[454,455,456],"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":335,"depth":335,"links":458},[459,460,461],{"id":232,"depth":335,"text":233},{"id":252,"depth":335,"text":253},{"id":303,"depth":335,"text":304,"children":462},[463,465],{"id":315,"depth":381,"text":464},"Install nitro package",{"id":326,"depth":381,"text":327},"Start with a fresh Nitro project or adopt it in your current Vite project.","md",{"icon":16},{"icon":16},{"title":13,"description":466},"Yf2gwdmEDbuEQR4wdaRT9EEf6ZLjnHxdaiIJAgpRJfo",[473,475],{"title":10,"path":6,"stem":7,"description":474,"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":476,"icon":21,"children":-1},"Use a renderer to handle all unmatched routes with custom HTML or a templating system.",1764004914628]