[{"data":1,"prerenderedAt":1641},["ShallowReactive",2],{"navigation":3,"-docs-cli":445,"-docs-cli-surround":1636},[4,123,260,266,430,442],{"title":5,"path":6,"stem":7,"children":8,"icon":122},"","\u002Fdocs","1.docs\u002F1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77,82,87,92,97,102,107,112,117],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-compass",{"title":13,"path":14,"stem":15,"icon":16},"Quick Start","\u002Fdocs\u002Fquick-start","1.docs\u002F2.quick-start","i-lucide-zap",{"title":18,"path":19,"stem":20,"icon":21},"Renderer","\u002Fdocs\u002Frenderer","1.docs\u002F4.renderer","ri:layout-masonry-line",{"title":23,"path":24,"stem":25,"icon":26},"Routing","\u002Fdocs\u002Frouting","1.docs\u002F5.routing","ri:direction-line",{"title":28,"path":29,"stem":30,"icon":31},"Assets","\u002Fdocs\u002Fassets","1.docs\u002F50.assets","ri:image-2-line",{"title":33,"path":34,"stem":35,"icon":36},"Configuration","\u002Fdocs\u002Fconfiguration","1.docs\u002F50.configuration","ri:settings-3-line",{"title":38,"path":39,"stem":40,"icon":41},"Database","\u002Fdocs\u002Fdatabase","1.docs\u002F50.database","ri:database-2-line",{"title":43,"path":44,"stem":45,"icon":46},"Lifecycle","\u002Fdocs\u002Flifecycle","1.docs\u002F50.lifecycle","i-lucide-layers",{"title":48,"path":49,"stem":50,"icon":51},"OpenAPI","\u002Fdocs\u002Fopenapi","1.docs\u002F50.openapi","ri:contract-line",{"title":53,"path":54,"stem":55,"icon":56},"Plugins","\u002Fdocs\u002Fplugins","1.docs\u002F50.plugins","ri:plug-line",{"title":58,"path":59,"stem":60,"icon":61},"Prerendering","\u002Fdocs\u002Fprerendering","1.docs\u002F50.prerendering","ri:file-copy-2-line",{"title":63,"path":64,"stem":65,"icon":66},"Tasks","\u002Fdocs\u002Ftasks","1.docs\u002F50.tasks","codicon:run-all",{"title":68,"path":69,"stem":70,"icon":71},"WebSocket","\u002Fdocs\u002Fwebsocket","1.docs\u002F50.websocket","ri:broadcast-fill",{"title":73,"path":74,"stem":75,"icon":76},"Modules","\u002Fdocs\u002Fmodules","1.docs\u002F55.modules","i-lucide-puzzle",{"title":78,"path":79,"stem":80,"icon":81},"Server Entry","\u002Fdocs\u002Fserver-entry","1.docs\u002F6.server-entry","ri:server-line",{"title":83,"path":84,"stem":85,"icon":86},"CLI","\u002Fdocs\u002Fcli","1.docs\u002F60.cli","i-lucide-terminal",{"title":88,"path":89,"stem":90,"icon":91},"Vite","\u002Fdocs\u002Fvite","1.docs\u002F61.vite","i-logos-vitejs",{"title":93,"path":94,"stem":95,"icon":96},"Utils","\u002Fdocs\u002Futils","1.docs\u002F62.utils","i-lucide-braces",{"title":98,"path":99,"stem":100,"icon":101},"TypeScript","\u002Fdocs\u002Ftypescript","1.docs\u002F63.typescript","i-logos-typescript-icon",{"title":103,"path":104,"stem":105,"icon":106},"Cache","\u002Fdocs\u002Fcache","1.docs\u002F7.cache","ri:speed-line",{"title":108,"path":109,"stem":110,"icon":111},"KV Storage","\u002Fdocs\u002Fstorage","1.docs\u002F8.storage","carbon:datastore",{"title":113,"path":114,"stem":115,"icon":116},"Migration Guide","\u002Fdocs\u002Fmigration","1.docs\u002F99.migration","ri:arrow-right-up-line",{"title":118,"path":119,"stem":120,"icon":121},"Nightly Channel","\u002Fdocs\u002Fnightly","1.docs\u002F99.nightly","ri:moon-fill","i-lucide-book-open",{"title":124,"path":125,"stem":126,"children":127,"icon":129},"Deploy","\u002Fdeploy","2.deploy\u002F0.index",[128,130,155],{"title":124,"path":125,"stem":126,"icon":129},"ri:upload-cloud-2-line",{"title":131,"path":132,"stem":133,"children":134,"page":154},"Runtimes","\u002Fdeploy\u002Fruntimes","2.deploy\u002F10.runtimes",[135,140,145,150],{"title":136,"path":137,"stem":138,"icon":139},"Node.js","\u002Fdeploy\u002Fruntimes\u002Fnode","2.deploy\u002F10.runtimes\u002F1.node","akar-icons:node-fill",{"title":141,"path":142,"stem":143,"icon":144},"Bun","\u002Fdeploy\u002Fruntimes\u002Fbun","2.deploy\u002F10.runtimes\u002Fbun","simple-icons:bun",{"title":146,"path":147,"stem":148,"icon":149},"Deno","\u002Fdeploy\u002Fruntimes\u002Fdeno","2.deploy\u002F10.runtimes\u002Fdeno","simple-icons:deno",{"title":151,"path":152,"stem":153},"Standard","\u002Fdeploy\u002Fruntimes\u002Fstandard","2.deploy\u002F10.runtimes\u002Fstandard",false,{"title":156,"path":157,"stem":158,"children":159,"page":154},"Providers","\u002Fdeploy\u002Fproviders","2.deploy\u002F20.providers",[160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256],{"title":161,"path":162,"stem":163},"Alwaysdata","\u002Fdeploy\u002Fproviders\u002Falwaysdata","2.deploy\u002F20.providers\u002Falwaysdata",{"title":165,"path":166,"stem":167},"AWS Lambda","\u002Fdeploy\u002Fproviders\u002Faws","2.deploy\u002F20.providers\u002Faws",{"title":169,"path":170,"stem":171},"AWS Amplify","\u002Fdeploy\u002Fproviders\u002Faws-amplify","2.deploy\u002F20.providers\u002Faws-amplify",{"title":173,"path":174,"stem":175},"Azure","\u002Fdeploy\u002Fproviders\u002Fazure","2.deploy\u002F20.providers\u002Fazure",{"title":177,"path":178,"stem":179},"Cleavr","\u002Fdeploy\u002Fproviders\u002Fcleavr","2.deploy\u002F20.providers\u002Fcleavr",{"title":181,"path":182,"stem":183},"Cloudflare","\u002Fdeploy\u002Fproviders\u002Fcloudflare","2.deploy\u002F20.providers\u002Fcloudflare",{"title":185,"path":186,"stem":187},"Deno Deploy","\u002Fdeploy\u002Fproviders\u002Fdeno-deploy","2.deploy\u002F20.providers\u002Fdeno-deploy",{"title":189,"path":190,"stem":191},"DigitalOcean","\u002Fdeploy\u002Fproviders\u002Fdigitalocean","2.deploy\u002F20.providers\u002Fdigitalocean",{"title":193,"path":194,"stem":195},"EdgeOne Pages","\u002Fdeploy\u002Fproviders\u002Fedgeone","2.deploy\u002F20.providers\u002Fedgeone",{"title":197,"path":198,"stem":199},"Firebase","\u002Fdeploy\u002Fproviders\u002Ffirebase","2.deploy\u002F20.providers\u002Ffirebase",{"title":201,"path":202,"stem":203},"Flightcontrol","\u002Fdeploy\u002Fproviders\u002Fflightcontrol","2.deploy\u002F20.providers\u002Fflightcontrol",{"title":205,"path":206,"stem":207},"Genezio","\u002Fdeploy\u002Fproviders\u002Fgenezio","2.deploy\u002F20.providers\u002Fgenezio",{"title":209,"path":210,"stem":211},"GitHub Pages","\u002Fdeploy\u002Fproviders\u002Fgithub-pages","2.deploy\u002F20.providers\u002Fgithub-pages",{"title":213,"path":214,"stem":215},"GitLab Pages","\u002Fdeploy\u002Fproviders\u002Fgitlab-pages","2.deploy\u002F20.providers\u002Fgitlab-pages",{"title":217,"path":218,"stem":219},"Heroku","\u002Fdeploy\u002Fproviders\u002Fheroku","2.deploy\u002F20.providers\u002Fheroku",{"title":221,"path":222,"stem":223},"IIS","\u002Fdeploy\u002Fproviders\u002Fiis","2.deploy\u002F20.providers\u002Fiis",{"title":225,"path":226,"stem":227},"Koyeb","\u002Fdeploy\u002Fproviders\u002Fkoyeb","2.deploy\u002F20.providers\u002Fkoyeb",{"title":229,"path":230,"stem":231},"Netlify","\u002Fdeploy\u002Fproviders\u002Fnetlify","2.deploy\u002F20.providers\u002Fnetlify",{"title":233,"path":234,"stem":235},"Platform.sh","\u002Fdeploy\u002Fproviders\u002Fplatform-sh","2.deploy\u002F20.providers\u002Fplatform-sh",{"title":237,"path":238,"stem":239},"Render.com","\u002Fdeploy\u002Fproviders\u002Frender","2.deploy\u002F20.providers\u002Frender",{"title":241,"path":242,"stem":243},"Stormkit","\u002Fdeploy\u002Fproviders\u002Fstormkit","2.deploy\u002F20.providers\u002Fstormkit",{"title":245,"path":246,"stem":247},"Vercel","\u002Fdeploy\u002Fproviders\u002Fvercel","2.deploy\u002F20.providers\u002Fvercel",{"title":249,"path":250,"stem":251},"Zeabur","\u002Fdeploy\u002Fproviders\u002Fzeabur","2.deploy\u002F20.providers\u002Fzeabur",{"title":253,"path":254,"stem":255},"Zephyr Cloud","\u002Fdeploy\u002Fproviders\u002Fzephyr","2.deploy\u002F20.providers\u002Fzephyr",{"title":257,"path":258,"stem":259},"Zerops","\u002Fdeploy\u002Fproviders\u002Fzerops","2.deploy\u002F20.providers\u002Fzerops",{"title":261,"path":262,"stem":263,"children":264,"icon":36},"Config","\u002Fconfig","3.config\u002F0.index",[265],{"title":261,"path":262,"stem":263,"icon":36},{"title":267,"path":268,"stem":269,"children":270,"icon":272},"Examples","\u002Fexamples","4.examples\u002F0.index",[271,273,278,283,288,293,297,302,307,312,317,322,327,331,336,340,344,349,354,359,364,369,374,379,383,388,393,398,402,407,412,416,421,426],{"title":267,"path":268,"stem":269,"icon":272},"i-lucide-folder-code",{"title":274,"path":275,"stem":276,"icon":277},"API Routes","\u002Fexamples\u002Fapi-routes","4.examples\u002Fapi-routes","i-lucide-route",{"title":279,"path":280,"stem":281,"icon":282},"Auto Imports","\u002Fexamples\u002Fauto-imports","4.examples\u002Fauto-imports","i-lucide-import",{"title":284,"path":285,"stem":286,"icon":287},"Cached Handler","\u002Fexamples\u002Fcached-handler","4.examples\u002Fcached-handler","i-lucide-clock",{"title":289,"path":290,"stem":291,"icon":292},"Custom Error Handler","\u002Fexamples\u002Fcustom-error-handler","4.examples\u002Fcustom-error-handler","i-lucide-alert-circle",{"title":38,"path":294,"stem":295,"icon":296},"\u002Fexamples\u002Fdatabase","4.examples\u002Fdatabase","i-lucide-database",{"title":298,"path":299,"stem":300,"icon":301},"Elysia","\u002Fexamples\u002Felysia","4.examples\u002Felysia","i-skill-icons-elysia-dark",{"title":303,"path":304,"stem":305,"icon":306},"Express","\u002Fexamples\u002Fexpress","4.examples\u002Fexpress","i-simple-icons-express",{"title":308,"path":309,"stem":310,"icon":311},"Fastify","\u002Fexamples\u002Ffastify","4.examples\u002Ffastify","i-simple-icons-fastify",{"title":313,"path":314,"stem":315,"icon":316},"Hello World","\u002Fexamples\u002Fhello-world","4.examples\u002Fhello-world","i-lucide-sparkles",{"title":318,"path":319,"stem":320,"icon":321},"Hono","\u002Fexamples\u002Fhono","4.examples\u002Fhono","i-logos-hono",{"title":323,"path":324,"stem":325,"icon":326},"Import Alias","\u002Fexamples\u002Fimport-alias","4.examples\u002Fimport-alias","i-lucide-at-sign",{"title":328,"path":329,"stem":330,"icon":46},"Middleware","\u002Fexamples\u002Fmiddleware","4.examples\u002Fmiddleware",{"title":332,"path":333,"stem":334,"icon":335},"Mono JSX","\u002Fexamples\u002Fmono-jsx","4.examples\u002Fmono-jsx","i-lucide-brackets",{"title":337,"path":338,"stem":339,"icon":335},"Nano JSX","\u002Fexamples\u002Fnano-jsx","4.examples\u002Fnano-jsx",{"title":53,"path":341,"stem":342,"icon":343},"\u002Fexamples\u002Fplugins","4.examples\u002Fplugins","i-lucide-plug",{"title":345,"path":346,"stem":347,"icon":348},"Custom Renderer","\u002Fexamples\u002Frenderer","4.examples\u002Frenderer","i-lucide-code",{"title":350,"path":351,"stem":352,"icon":353},"Runtime Config","\u002Fexamples\u002Fruntime-config","4.examples\u002Fruntime-config","i-lucide-settings",{"title":355,"path":356,"stem":357,"icon":358},"Server Fetch","\u002Fexamples\u002Fserver-fetch","4.examples\u002Fserver-fetch","i-lucide-arrow-right-left",{"title":360,"path":361,"stem":362,"icon":363},"Shiki","\u002Fexamples\u002Fshiki","4.examples\u002Fshiki","i-lucide-highlighter",{"title":365,"path":366,"stem":367,"icon":368},"Takumi","\u002Fexamples\u002Ftakumi","4.examples\u002Ftakumi","i-lucide-image",{"title":370,"path":371,"stem":372,"icon":373},"Tracing","\u002Fexamples\u002Ftracing","4.examples\u002Ftracing","i-lucide-activity",{"title":375,"path":376,"stem":377,"icon":378},"Virtual Routes","\u002Fexamples\u002Fvirtual-routes","4.examples\u002Fvirtual-routes","i-lucide-box",{"title":380,"path":381,"stem":382,"icon":91},"Vite Nitro Plugin","\u002Fexamples\u002Fvite-nitro-plugin","4.examples\u002Fvite-nitro-plugin",{"title":384,"path":385,"stem":386,"icon":387},"Vite RSC","\u002Fexamples\u002Fvite-rsc","4.examples\u002Fvite-rsc","i-logos-react",{"title":389,"path":390,"stem":391,"icon":392},"Vite SSR HTML","\u002Fexamples\u002Fvite-ssr-html","4.examples\u002Fvite-ssr-html","i-logos-html-5",{"title":394,"path":395,"stem":396,"icon":397},"SSR with Preact","\u002Fexamples\u002Fvite-ssr-preact","4.examples\u002Fvite-ssr-preact","i-logos-preact",{"title":399,"path":400,"stem":401,"icon":387},"SSR with React","\u002Fexamples\u002Fvite-ssr-react","4.examples\u002Fvite-ssr-react",{"title":403,"path":404,"stem":405,"icon":406},"SSR with SolidJS","\u002Fexamples\u002Fvite-ssr-solid","4.examples\u002Fvite-ssr-solid","i-logos-solidjs-icon",{"title":408,"path":409,"stem":410,"icon":411},"SSR with TanStack Router","\u002Fexamples\u002Fvite-ssr-tsr-react","4.examples\u002Fvite-ssr-tsr-react","i-simple-icons-tanstack",{"title":413,"path":414,"stem":415,"icon":411},"SSR with TanStack Start","\u002Fexamples\u002Fvite-ssr-tss-react","4.examples\u002Fvite-ssr-tss-react",{"title":417,"path":418,"stem":419,"icon":420},"SSR with Vue Router","\u002Fexamples\u002Fvite-ssr-vue-router","4.examples\u002Fvite-ssr-vue-router","i-logos-vue",{"title":422,"path":423,"stem":424,"icon":425},"Vite + tRPC","\u002Fexamples\u002Fvite-trpc","4.examples\u002Fvite-trpc","i-simple-icons-trpc",{"title":68,"path":427,"stem":428,"icon":429},"\u002Fexamples\u002Fwebsocket","4.examples\u002Fwebsocket","i-lucide-radio",{"title":431,"path":432,"stem":433,"children":434},"Blog","\u002Fblog","9.blog",[435,438],{"title":431,"path":432,"stem":436,"icon":437},"9.blog\u002Findex","i-lucide-file-text",{"title":439,"path":440,"stem":441,"icon":437},"Nitro v3 Beta is here!","\u002Fblog\u002Fv3-beta","9.blog\u002F1.v3-beta",{"title":5,"path":443,"stem":444},"\u002F","index",{"id":446,"title":83,"body":447,"description":1630,"extension":1631,"meta":1632,"navigation":1633,"path":84,"seo":1634,"stem":85,"__hash__":1635},"content\u002F1.docs\u002F60.cli.md",{"type":448,"value":449,"toc":1615,"icon":86},"minimark",[450,477,556,571,589,600,620,627,630,698,747,758,764,789,795,802,864,953,957,976,985,994,1018,1024,1031,1057,1077,1089,1095,1098,1148,1184,1188,1210,1216,1219,1257,1279,1301,1313,1317,1362,1368,1375,1400,1406,1409,1438,1458,1464,1467,1520,1550,1554,1578,1584,1594,1611],[451,452,453,454,458,459,462,463,462,466,462,469,472,473,476],"p",{},"When ",[455,456,457],"code",{},"nitro"," is installed as a project dependency, run it through your package manager (",[455,460,461],{},"npx nitro",", ",[455,464,465],{},"pnpm nitro",[455,467,468],{},"yarn nitro",[455,470,471],{},"bun nitro",", ...) or add it to your ",[455,474,475],{},"package.json"," scripts:",[478,479,483],"pre",{"className":480,"code":481,"filename":475,"language":482,"meta":5,"style":5},"language-json shiki shiki-themes github-light github-dark github-dark","{\n  \"scripts\": {\n    \"dev\": \"nitro dev\",\n    \"build\": \"nitro build\",\n    \"preview\": \"nitro preview\"\n  }\n}\n","json",[455,484,485,494,504,520,533,544,550],{"__ignoreMap":5},[486,487,490],"span",{"class":488,"line":489},"line",1,[486,491,493],{"class":492},"slsVL","{\n",[486,495,497,501],{"class":488,"line":496},2,[486,498,500],{"class":499},"suiK_","  \"scripts\"",[486,502,503],{"class":492},": {\n",[486,505,507,510,513,517],{"class":488,"line":506},3,[486,508,509],{"class":499},"    \"dev\"",[486,511,512],{"class":492},": ",[486,514,516],{"class":515},"sfrk1","\"nitro dev\"",[486,518,519],{"class":492},",\n",[486,521,523,526,528,531],{"class":488,"line":522},4,[486,524,525],{"class":499},"    \"build\"",[486,527,512],{"class":492},[486,529,530],{"class":515},"\"nitro build\"",[486,532,519],{"class":492},[486,534,536,539,541],{"class":488,"line":535},5,[486,537,538],{"class":499},"    \"preview\"",[486,540,512],{"class":492},[486,542,543],{"class":515},"\"nitro preview\"\n",[486,545,547],{"class":488,"line":546},6,[486,548,549],{"class":492},"  }\n",[486,551,553],{"class":488,"line":552},7,[486,554,555],{"class":492},"}\n",[451,557,558,559,462,562,565,566,570],{},"Then use ",[455,560,561],{},"npm run dev",[455,563,564],{},"pnpm dev",", etc. as shown in the ",[567,568,569],"a",{"href":14},"quick start"," guide.",[572,573,574],"tip",{},[451,575,576,577,580,581,584,585,588],{},"Every command supports ",[455,578,579],{},"--help"," for an overview of its arguments (for example ",[455,582,583],{},"nitro build --help","), and ",[455,586,587],{},"nitro --version"," prints the installed Nitro version.",[451,590,591,592,595,596,599],{},"All commands accept a project root directory, either as a positional argument (",[455,593,594],{},"nitro build .\u002Fmy-app",") or with the ",[455,597,598],{},"--dir"," flag (preferred). It defaults to the current directory.",[601,602,603],"note",{},[451,604,605,606,609,610,462,613,462,616,619],{},"Using Nitro as a ",[567,607,608],{"href":89},"Vite plugin","? Prefer the Vite CLI (",[455,611,612],{},"vite dev",[455,614,615],{},"vite build",[455,617,618],{},"vite preview",") — the Nitro dev server does not support the Vite builder.",[621,622,624],"h2",{"id":623},"nitro-dev",[455,625,626],{},"nitro dev",[451,628,629],{},"Start the development server with hot reloading.",[478,631,635],{"className":632,"code":633,"language":634,"meta":5,"style":5},"language-sh shiki shiki-themes github-light github-dark github-dark","npx nitro dev [--dir \u003Cdir>] [--port \u003Cport>] [--host \u003Chost>]\n","sh",[455,636,637],{"__ignoreMap":5},[486,638,639,643,646,649,652,656,659,662,665,668,671,673,676,679,681,683,686,688,691,693,695],{"class":488,"line":489},[486,640,642],{"class":641},"shcOC","npx",[486,644,645],{"class":515}," nitro",[486,647,648],{"class":515}," dev",[486,650,651],{"class":492}," [--dir ",[486,653,655],{"class":654},"so5gQ","\u003C",[486,657,658],{"class":515},"di",[486,660,661],{"class":492},"r",[486,663,664],{"class":654},">",[486,666,667],{"class":515},"]",[486,669,670],{"class":492}," [--port ",[486,672,655],{"class":654},[486,674,675],{"class":515},"por",[486,677,678],{"class":492},"t",[486,680,664],{"class":654},[486,682,667],{"class":515},[486,684,685],{"class":492}," [--host ",[486,687,655],{"class":654},[486,689,690],{"class":515},"hos",[486,692,678],{"class":492},[486,694,664],{"class":654},[486,696,697],{"class":515},"]\n",[699,700,701,714],"table",{},[702,703,704],"thead",{},[705,706,707,711],"tr",{},[708,709,710],"th",{},"Flag",[708,712,713],{},"Description",[715,716,717,727,737],"tbody",{},[705,718,719,724],{},[720,721,722],"td",{},[455,723,598],{},[720,725,726],{},"Project root directory.",[705,728,729,734],{},[720,730,731],{},[455,732,733],{},"--port",[720,735,736],{},"Port to listen on.",[705,738,739,744],{},[720,740,741],{},[455,742,743],{},"--host",[720,745,746],{},"Hostname to listen on.",[451,748,749,750,753,754,757],{},"The dev server watches your Nitro config: changes to ",[455,751,752],{},"runtimeConfig"," or ",[455,755,756],{},"routeRules"," are hot reloaded, while other config changes trigger a full dev server restart.",[451,759,760],{},[761,762,763],"strong",{},"Example:",[478,765,767],{"className":632,"code":766,"language":634,"meta":5,"style":5},"npx nitro dev --port 4000 --host 0.0.0.0\n",[455,768,769],{"__ignoreMap":5},[486,770,771,773,775,777,780,783,786],{"class":488,"line":489},[486,772,642],{"class":641},[486,774,645],{"class":515},[486,776,648],{"class":515},[486,778,779],{"class":499}," --port",[486,781,782],{"class":499}," 4000",[486,784,785],{"class":499}," --host",[486,787,788],{"class":499}," 0.0.0.0\n",[621,790,792],{"id":791},"nitro-build",[455,793,794],{},"nitro build",[451,796,797,798,801],{},"Build the project for production. Nitro prepares the build directory, copies public assets, prerenders any configured routes, and bundles the server into the output directory (",[455,799,800],{},".output\u002F"," by default).",[478,803,805],{"className":632,"code":804,"language":634,"meta":5,"style":5},"npx nitro build [--dir \u003Cdir>] [--preset \u003Cpreset>] [--minify] [--builder \u003Cbuilder>] [--compatibility-date \u003Cdate>]\n",[455,806,807],{"__ignoreMap":5},[486,808,809,811,813,816,818,820,822,824,826,828,831,833,836,838,840,842,845,847,850,852,855,857,860,862],{"class":488,"line":489},[486,810,642],{"class":641},[486,812,645],{"class":515},[486,814,815],{"class":515}," build",[486,817,651],{"class":492},[486,819,655],{"class":654},[486,821,658],{"class":515},[486,823,661],{"class":492},[486,825,664],{"class":654},[486,827,667],{"class":515},[486,829,830],{"class":492}," [--preset ",[486,832,655],{"class":654},[486,834,835],{"class":515},"prese",[486,837,678],{"class":492},[486,839,664],{"class":654},[486,841,667],{"class":515},[486,843,844],{"class":492}," [--minify] [--builder ",[486,846,655],{"class":654},[486,848,849],{"class":492},"builder",[486,851,664],{"class":654},[486,853,854],{"class":492},"] [--compatibility-date ",[486,856,655],{"class":654},[486,858,859],{"class":492},"date",[486,861,664],{"class":654},[486,863,697],{"class":492},[699,865,866,874],{},[702,867,868],{},[705,869,870,872],{},[708,871,710],{},[708,873,713],{},[715,875,876,884,902,916,940],{},[705,877,878,882],{},[720,879,880],{},[455,881,598],{},[720,883,726],{},[705,885,886,891],{},[720,887,888],{},[455,889,890],{},"--preset",[720,892,893,894,897,898,901],{},"The deployment ",[567,895,896],{"href":125},"preset"," to build for (you can also use the ",[455,899,900],{},"NITRO_PRESET"," environment variable).",[705,903,904,909],{},[720,905,906],{},[455,907,908],{},"--minify",[720,910,911,912,915],{},"Minify the output, overriding preset defaults. Use ",[455,913,914],{},"--no-minify"," to disable minification.",[705,917,918,923],{},[720,919,920],{},[455,921,922],{},"--builder",[720,924,925,926,462,929,932,933,936,937,901],{},"The bundler to use: ",[455,927,928],{},"rollup",[455,930,931],{},"rolldown",", or ",[455,934,935],{},"vite"," (you can also use the ",[455,938,939],{},"NITRO_BUILDER",[705,941,942,947],{},[720,943,944],{},[455,945,946],{},"--compatibility-date",[720,948,949,950,901],{},"The date to use for preset compatibility (you can also use the ",[455,951,952],{},"NITRO_COMPATIBILITY_DATE",[451,954,955],{},[761,956,763],{},[478,958,960],{"className":632,"code":959,"language":634,"meta":5,"style":5},"npx nitro build --preset cloudflare_module\n",[455,961,962],{"__ignoreMap":5},[486,963,964,966,968,970,973],{"class":488,"line":489},[486,965,642],{"class":641},[486,967,645],{"class":515},[486,969,815],{"class":515},[486,971,972],{"class":499}," --preset",[486,974,975],{"class":515}," cloudflare_module\n",[977,978,980,982,983],"h3",{"id":979},"nitro_preset-vs-preset",[455,981,900],{}," vs ",[455,984,890],{},[451,986,987,988,990,991,993],{},"Both set the deployment preset, and the ",[455,989,890],{}," flag takes precedence over the ",[455,992,900],{}," environment variable. The environment variable is handy on deployment platforms and in CI, where you often cannot change the build command:",[478,995,997],{"className":632,"code":996,"language":634,"meta":5,"style":5},"NITRO_PRESET=cloudflare_module npm run build\n",[455,998,999],{"__ignoreMap":5},[486,1000,1001,1003,1006,1009,1012,1015],{"class":488,"line":489},[486,1002,900],{"class":492},[486,1004,1005],{"class":654},"=",[486,1007,1008],{"class":515},"cloudflare_module",[486,1010,1011],{"class":641}," npm",[486,1013,1014],{"class":515}," run",[486,1016,1017],{"class":515}," build\n",[621,1019,1021],{"id":1020},"nitro-prepare",[455,1022,1023],{},"nitro prepare",[451,1025,1026,1027,1030],{},"Generate the project types (in ",[455,1028,1029],{},"node_modules\u002F.nitro\u002Ftypes"," by default) without building.",[478,1032,1034],{"className":632,"code":1033,"language":634,"meta":5,"style":5},"npx nitro prepare [--dir \u003Cdir>]\n",[455,1035,1036],{"__ignoreMap":5},[486,1037,1038,1040,1042,1045,1047,1049,1051,1053,1055],{"class":488,"line":489},[486,1039,642],{"class":641},[486,1041,645],{"class":515},[486,1043,1044],{"class":515}," prepare",[486,1046,651],{"class":492},[486,1048,655],{"class":654},[486,1050,658],{"class":515},[486,1052,661],{"class":492},[486,1054,664],{"class":654},[486,1056,697],{"class":515},[699,1058,1059,1067],{},[702,1060,1061],{},[705,1062,1063,1065],{},[708,1064,710],{},[708,1066,713],{},[715,1068,1069],{},[705,1070,1071,1075],{},[720,1072,1073],{},[455,1074,598],{},[720,1076,726],{},[572,1078,1079],{},[451,1080,1081,1082,1084,1085,1088],{},"Running ",[455,1083,1023],{}," in a ",[455,1086,1087],{},"postinstall"," script keeps generated types up to date for your editor after each install.",[621,1090,1092],{"id":1091},"nitro-preview",[455,1093,1094],{},"nitro preview",[451,1096,1097],{},"Start a local server to preview the production build output.",[478,1099,1101],{"className":632,"code":1100,"language":634,"meta":5,"style":5},"npx nitro preview [--dir \u003Cdir>] [--port \u003Cport>] [--host \u003Chost>]\n",[455,1102,1103],{"__ignoreMap":5},[486,1104,1105,1107,1109,1112,1114,1116,1118,1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146],{"class":488,"line":489},[486,1106,642],{"class":641},[486,1108,645],{"class":515},[486,1110,1111],{"class":515}," preview",[486,1113,651],{"class":492},[486,1115,655],{"class":654},[486,1117,658],{"class":515},[486,1119,661],{"class":492},[486,1121,664],{"class":654},[486,1123,667],{"class":515},[486,1125,670],{"class":492},[486,1127,655],{"class":654},[486,1129,675],{"class":515},[486,1131,678],{"class":492},[486,1133,664],{"class":654},[486,1135,667],{"class":515},[486,1137,685],{"class":492},[486,1139,655],{"class":654},[486,1141,690],{"class":515},[486,1143,678],{"class":492},[486,1145,664],{"class":654},[486,1147,697],{"class":515},[699,1149,1150,1158],{},[702,1151,1152],{},[705,1153,1154,1156],{},[708,1155,710],{},[708,1157,713],{},[715,1159,1160,1168,1176],{},[705,1161,1162,1166],{},[720,1163,1164],{},[455,1165,598],{},[720,1167,726],{},[705,1169,1170,1174],{},[720,1171,1172],{},[455,1173,733],{},[720,1175,736],{},[705,1177,1178,1182],{},[720,1179,1180],{},[455,1181,743],{},[720,1183,746],{},[451,1185,1186],{},[761,1187,763],{},[478,1189,1191],{"className":632,"code":1190,"language":634,"meta":5,"style":5},"npx nitro build\nnpx nitro preview\n",[455,1192,1193,1201],{"__ignoreMap":5},[486,1194,1195,1197,1199],{"class":488,"line":489},[486,1196,642],{"class":641},[486,1198,645],{"class":515},[486,1200,1017],{"class":515},[486,1202,1203,1205,1207],{"class":488,"line":496},[486,1204,642],{"class":641},[486,1206,645],{"class":515},[486,1208,1209],{"class":515}," preview\n",[621,1211,1213],{"id":1212},"nitro-deploy",[455,1214,1215],{},"nitro deploy",[451,1217,1218],{},"Build the project, then run the deploy command of the selected preset.",[478,1220,1222],{"className":632,"code":1221,"language":634,"meta":5,"style":5},"npx nitro deploy [--dir \u003Cdir>] [--prebuilt] [build flags...] [-- \u003Cextra deploy args>]\n",[455,1223,1224],{"__ignoreMap":5},[486,1225,1226,1228,1230,1233,1235,1237,1239,1241,1243,1245,1248,1250,1253,1255],{"class":488,"line":489},[486,1227,642],{"class":641},[486,1229,645],{"class":515},[486,1231,1232],{"class":515}," deploy",[486,1234,651],{"class":492},[486,1236,655],{"class":654},[486,1238,658],{"class":515},[486,1240,661],{"class":492},[486,1242,664],{"class":654},[486,1244,667],{"class":515},[486,1246,1247],{"class":492}," [--prebuilt] [build flags...] [-- ",[486,1249,655],{"class":654},[486,1251,1252],{"class":492},"extra deploy args",[486,1254,664],{"class":654},[486,1256,697],{"class":492},[699,1258,1259,1267],{},[702,1260,1261],{},[705,1262,1263,1265],{},[708,1264,710],{},[708,1266,713],{},[715,1268,1269],{},[705,1270,1271,1276],{},[720,1272,1273],{},[455,1274,1275],{},"--prebuilt",[720,1277,1278],{},"Skip the build step and deploy the existing build output.",[451,1280,1281,1282,1287,1288,462,1290,462,1292,462,1294,1296,1297,1300],{},"All ",[567,1283,1285],{"href":1284},"#nitro-build",[455,1286,794],{}," flags (",[455,1289,890],{},[455,1291,908],{},[455,1293,922],{},[455,1295,946],{},", ...) are also accepted and applied to the build step. Any arguments after ",[455,1298,1299],{},"--"," are appended to the underlying deploy command.",[601,1302,1303],{},[451,1304,1305,1306,1308,1309,1312],{},"Not all presets support ",[455,1307,1215],{},". If the selected preset does not define a deploy command (or no build output is found), the command fails with an error. In that case, use a different preset, configure a deploy command in your Nitro config, or deploy manually following the ",[567,1310,1311],{"href":125},"deployment guide"," of your provider.",[451,1314,1315],{},[761,1316,763],{},[478,1318,1320],{"className":632,"code":1319,"language":634,"meta":5,"style":5},"# Build with the cloudflare_module preset, then run wrangler deploy\nnpx nitro deploy --preset cloudflare_module\n\n# Deploy an existing build without rebuilding\nnpx nitro deploy --prebuilt\n",[455,1321,1322,1328,1340,1346,1351],{"__ignoreMap":5},[486,1323,1324],{"class":488,"line":489},[486,1325,1327],{"class":1326},"sCsY4","# Build with the cloudflare_module preset, then run wrangler deploy\n",[486,1329,1330,1332,1334,1336,1338],{"class":488,"line":496},[486,1331,642],{"class":641},[486,1333,645],{"class":515},[486,1335,1232],{"class":515},[486,1337,972],{"class":499},[486,1339,975],{"class":515},[486,1341,1342],{"class":488,"line":506},[486,1343,1345],{"emptyLinePlaceholder":1344},true,"\n",[486,1347,1348],{"class":488,"line":522},[486,1349,1350],{"class":1326},"# Deploy an existing build without rebuilding\n",[486,1352,1353,1355,1357,1359],{"class":488,"line":535},[486,1354,642],{"class":641},[486,1356,645],{"class":515},[486,1358,1232],{"class":515},[486,1360,1361],{"class":499}," --prebuilt\n",[621,1363,1365],{"id":1364},"nitro-task",[455,1366,1367],{},"nitro task",[451,1369,1370,1371,1374],{},"Operate on ",[567,1372,1373],{"href":64},"Nitro tasks"," (experimental).",[1376,1377,1378],"important",{},[451,1379,1380,1381,1384,1385,1388,1389,1392,1393,1395,1396,1399],{},"Tasks support is experimental and requires the ",[455,1382,1383],{},"experimental.tasks"," flag. The ",[455,1386,1387],{},"task"," subcommands work against the ",[761,1390,1391],{},"currently running dev server",", so run them in a second terminal while ",[455,1394,626],{}," is running. See the ",[567,1397,1398],{"href":64},"tasks documentation"," for details.",[977,1401,1403],{"id":1402},"nitro-task-list",[455,1404,1405],{},"nitro task list",[451,1407,1408],{},"List available tasks with their descriptions.",[478,1410,1412],{"className":632,"code":1411,"language":634,"meta":5,"style":5},"npx nitro task list [--dir \u003Cdir>]\n",[455,1413,1414],{"__ignoreMap":5},[486,1415,1416,1418,1420,1423,1426,1428,1430,1432,1434,1436],{"class":488,"line":489},[486,1417,642],{"class":641},[486,1419,645],{"class":515},[486,1421,1422],{"class":515}," task",[486,1424,1425],{"class":515}," list",[486,1427,651],{"class":492},[486,1429,655],{"class":654},[486,1431,658],{"class":515},[486,1433,661],{"class":492},[486,1435,664],{"class":654},[486,1437,697],{"class":515},[699,1439,1440,1448],{},[702,1441,1442],{},[705,1443,1444,1446],{},[708,1445,710],{},[708,1447,713],{},[715,1449,1450],{},[705,1451,1452,1456],{},[720,1453,1454],{},[455,1455,598],{},[720,1457,726],{},[977,1459,1461],{"id":1460},"nitro-task-run",[455,1462,1463],{},"nitro task run",[451,1465,1466],{},"Run a task by name, optionally with a JSON payload.",[478,1468,1470],{"className":632,"code":1469,"language":634,"meta":5,"style":5},"npx nitro task run \u003Cname> [--dir \u003Cdir>] [--payload \u003Cjson>]\n",[455,1471,1472],{"__ignoreMap":5},[486,1473,1474,1476,1478,1480,1482,1485,1488,1491,1493,1495,1497,1499,1501,1503,1505,1508,1510,1513,1516,1518],{"class":488,"line":489},[486,1475,642],{"class":641},[486,1477,645],{"class":515},[486,1479,1422],{"class":515},[486,1481,1014],{"class":515},[486,1483,1484],{"class":654}," \u003C",[486,1486,1487],{"class":515},"nam",[486,1489,1490],{"class":492},"e",[486,1492,664],{"class":654},[486,1494,651],{"class":492},[486,1496,655],{"class":654},[486,1498,658],{"class":515},[486,1500,661],{"class":492},[486,1502,664],{"class":654},[486,1504,667],{"class":515},[486,1506,1507],{"class":492}," [--payload ",[486,1509,655],{"class":654},[486,1511,1512],{"class":515},"jso",[486,1514,1515],{"class":492},"n",[486,1517,664],{"class":654},[486,1519,697],{"class":515},[699,1521,1522,1530],{},[702,1523,1524],{},[705,1525,1526,1528],{},[708,1527,710],{},[708,1529,713],{},[715,1531,1532,1540],{},[705,1533,1534,1538],{},[720,1535,1536],{},[455,1537,598],{},[720,1539,726],{},[705,1541,1542,1547],{},[720,1543,1544],{},[455,1545,1546],{},"--payload",[720,1548,1549],{},"JSON string parsed and passed to the task as its payload.",[451,1551,1552],{},[761,1553,763],{},[478,1555,1557],{"className":632,"code":1556,"language":634,"meta":5,"style":5},"npx nitro task run db:migrate --payload '{\"force\": true}'\n",[455,1558,1559],{"__ignoreMap":5},[486,1560,1561,1563,1565,1567,1569,1572,1575],{"class":488,"line":489},[486,1562,642],{"class":641},[486,1564,645],{"class":515},[486,1566,1422],{"class":515},[486,1568,1014],{"class":515},[486,1570,1571],{"class":515}," db:migrate",[486,1573,1574],{"class":499}," --payload",[486,1576,1577],{"class":515}," '{\"force\": true}'\n",[621,1579,1581],{"id":1580},"nitro-docs",[455,1582,1583],{},"nitro docs",[451,1585,1586,1587,1593],{},"Explore the Nitro documentation from your terminal (powered by ",[567,1588,1592],{"href":1589,"rel":1590},"https:\u002F\u002Fgithub.com\u002Fpi0\u002Fmdzilla",[1591],"nofollow","mdzilla","), optionally starting at a specific page path.",[478,1595,1597],{"className":632,"code":1596,"language":634,"meta":5,"style":5},"npx nitro docs [page]\n",[455,1598,1599],{"__ignoreMap":5},[486,1600,1601,1603,1605,1608],{"class":488,"line":489},[486,1602,642],{"class":641},[486,1604,645],{"class":515},[486,1606,1607],{"class":515}," docs",[486,1609,1610],{"class":492}," [page]\n",[1612,1613,1614],"style",{},"html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}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 .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":5,"searchDepth":496,"depth":496,"links":1616},[1617,1618,1622,1623,1624,1625,1629],{"id":623,"depth":496,"text":626},{"id":791,"depth":496,"text":794,"children":1619},[1620],{"id":979,"depth":506,"text":1621},"NITRO_PRESET vs --preset",{"id":1020,"depth":496,"text":1023},{"id":1091,"depth":496,"text":1094},{"id":1212,"depth":496,"text":1215},{"id":1364,"depth":496,"text":1367,"children":1626},[1627,1628],{"id":1402,"depth":506,"text":1405},{"id":1460,"depth":506,"text":1463},{"id":1580,"depth":496,"text":1583},"Nitro ships with a nitro command to develop, build, preview, and deploy your project.","md",{"icon":86},{"icon":86},{"title":83,"description":1630},"MM6qLybcHYL83kgXqlysM-Hf-7dENNwpw39MxF9tktI",[1637,1639],{"title":78,"path":79,"stem":80,"description":1638,"icon":81,"children":-1},"Use a server entry to create a global middleware that runs for all routes before they are matched.",{"title":88,"path":89,"stem":90,"description":1640,"icon":91,"children":-1},"Use Nitro as a Vite plugin to build full-stack applications, and choose the builder that bundles your server.",1784019071962]