[{"data":1,"prerenderedAt":805},["ShallowReactive",2],{"navigation":3,"examples-nav":224,"-examples-mono-jsx":353,"-examples-mono-jsx-surround":800},[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",[225,230,235,239,243,246,251,255,259,263,267,271,275,280,284,287,291,295,299,304,308,313,317,321,325,329,333,337,341,345,349],{"title":226,"description":227,"category":228,"path":229},"API Routes","File-based API routing with HTTP method support and dynamic parameters.","features","/examples/api-routes/readme",{"title":231,"description":232,"category":233,"path":234},"Auto Imports","Automatic imports for utilities and composables.","config","/examples/auto-imports/readme",{"title":236,"description":237,"category":228,"path":238},"Cached Handler","Cache route responses with configurable bypass logic.","/examples/cached-handler/readme",{"title":240,"description":241,"category":228,"path":242},"Custom Error Handler","Customize error responses with a global error handler.","/examples/custom-error-handler/readme",{"title":38,"description":244,"category":228,"path":245},"Built-in database support with SQL template literals.","/examples/database/readme",{"title":247,"description":248,"category":249,"path":250},"Elysia","Integrate Elysia with Nitro using the server entry.","backend frameworks","/examples/elysia/readme",{"title":252,"description":253,"category":249,"path":254},"Express","Integrate Express with Nitro using the server entry.","/examples/express/readme",{"title":256,"description":257,"category":249,"path":258},"Fastify","Integrate Fastify with Nitro using the server entry.","/examples/fastify/readme",{"title":260,"description":261,"category":228,"path":262},"Hello World","Minimal Nitro server using the web standard fetch handler.","/examples/hello-world/readme",{"title":264,"description":265,"category":249,"path":266},"Hono","Integrate Hono with Nitro using the server entry.","/examples/hono/readme",{"title":268,"description":269,"category":233,"path":270},"Import Alias","Custom import aliases for cleaner module paths.","/examples/import-alias/readme",{"title":272,"description":273,"category":228,"path":274},"Middleware","Request middleware for authentication, logging, and request modification.","/examples/middleware/readme",{"title":276,"description":277,"category":278,"path":279},"Mono JSX","Server-side JSX rendering in Nitro with mono-jsx.","server side rendering","/examples/mono-jsx/readme",{"title":281,"description":282,"category":278,"path":283},"Nano JSX","Server-side JSX rendering in Nitro with nano-jsx.","/examples/nano-jsx/readme",{"title":48,"description":285,"category":228,"path":286},"Extend Nitro with custom plugins for hooks and lifecycle events.","/examples/plugins/readme",{"title":288,"description":289,"category":278,"path":290},"Custom Renderer","Build a custom HTML renderer in Nitro with server-side data fetching.","/examples/renderer/readme",{"title":292,"description":293,"category":233,"path":294},"Runtime Config","Environment-aware configuration with runtime access.","/examples/runtime-config/readme",{"title":296,"description":297,"category":228,"path":298},"Server Fetch","Internal server-to-server requests without network overhead.","/examples/server-fetch/readme",{"title":300,"description":301,"category":302,"path":303},"Shiki","Server-side syntax highlighting in Nitro with Shiki.","integrations","/examples/shiki/readme",{"title":305,"description":306,"category":228,"path":307},"Virtual Routes","Define routes programmatically using Nitro's virtual module system.","/examples/virtual-routes/readme",{"title":309,"description":310,"category":311,"path":312},"Vite Nitro Plugin","Use Nitro as a Vite plugin for programmatic configuration.","vite","/examples/vite-nitro-plugin/readme",{"title":314,"description":315,"category":311,"path":316},"Vite RSC","React Server Components with Vite and Nitro.","/examples/vite-rsc/readme",{"title":318,"description":319,"category":278,"path":320},"Vite SSR HTML","Server-side rendering with vanilla HTML, Vite, and Nitro.","/examples/vite-ssr-html/readme",{"title":322,"description":323,"category":278,"path":324},"SSR with Preact","Server-side rendering with Preact in Nitro using Vite.","/examples/vite-ssr-preact/readme",{"title":326,"description":327,"category":278,"path":328},"SSR with React","Server-side rendering with React in Nitro using Vite.","/examples/vite-ssr-react/readme",{"title":330,"description":331,"category":278,"path":332},"SSR with SolidJS","Server-side rendering with SolidJS in Nitro using Vite.","/examples/vite-ssr-solid/readme",{"title":334,"description":335,"category":278,"path":336},"SSR with TanStack Router","Client-side routing with TanStack Router in Nitro using Vite.","/examples/vite-ssr-tsr-react/readme",{"title":338,"description":339,"category":278,"path":340},"SSR with TanStack Start","Full-stack React with TanStack Start in Nitro using Vite.","/examples/vite-ssr-tss-react/readme",{"title":342,"description":343,"category":278,"path":344},"SSR with Vue Router","Server-side rendering with Vue Router in Nitro using Vite.","/examples/vite-ssr-vue-router/readme",{"title":346,"description":347,"category":311,"path":348},"Vite + tRPC","End-to-end typesafe APIs with tRPC in Nitro using Vite.","/examples/vite-trpc/readme",{"title":350,"description":351,"category":228,"path":352},"WebSocket","Real-time bidirectional communication with WebSocket support.","/examples/websocket/readme",{"id":354,"title":276,"body":355,"category":278,"description":277,"extension":793,"icon":794,"meta":795,"navigation":796,"path":279,"seo":797,"stem":798,"__hash__":799},"examples/examples/mono-jsx/README.md",{"type":356,"value":357,"toc":789},"minimark",[358,705,709,757,764,768,785],[359,360,363,419,529,592,651],"code-tree",{":expand-all":361,"default-value":362,"expand-all":5},"true","server.tsx",[364,365,370],"pre",{"className":366,"code":367,"filename":368,"language":369,"meta":5,"style":5},"language-ts shiki shiki-themes github-light github-dark github-dark","import { defineConfig } from \"nitro\";\n\nexport default defineConfig({});\n","nitro.config.ts","ts",[371,372,373,396,403],"code",{"__ignoreMap":5},[374,375,378,382,386,389,393],"span",{"class":376,"line":377},"line",1,[374,379,381],{"class":380},"so5gQ","import",[374,383,385],{"class":384},"slsVL"," { defineConfig } ",[374,387,388],{"class":380},"from",[374,390,392],{"class":391},"sfrk1"," \"nitro\"",[374,394,395],{"class":384},";\n",[374,397,399],{"class":376,"line":398},2,[374,400,402],{"emptyLinePlaceholder":401},true,"\n",[374,404,406,409,412,416],{"class":376,"line":405},3,[374,407,408],{"class":380},"export",[374,410,411],{"class":380}," default",[374,413,415],{"class":414},"shcOC"," defineConfig",[374,417,418],{"class":384},"({});\n",[364,420,425],{"className":421,"code":422,"filename":423,"language":424,"meta":5,"style":5},"language-json shiki shiki-themes github-light github-dark github-dark","{\n  \"type\": \"module\",\n  \"scripts\": {\n    \"dev\": \"nitro dev\",\n    \"build\": \"nitro build\"\n  },\n  \"devDependencies\": {\n    \"mono-jsx\": \"latest\",\n    \"nitro\": \"latest\"\n  }\n}\n","package.json","json",[371,426,427,432,447,455,468,479,485,493,506,517,523],{"__ignoreMap":5},[374,428,429],{"class":376,"line":377},[374,430,431],{"class":384},"{\n",[374,433,434,438,441,444],{"class":376,"line":398},[374,435,437],{"class":436},"suiK_","  \"type\"",[374,439,440],{"class":384},": ",[374,442,443],{"class":391},"\"module\"",[374,445,446],{"class":384},",\n",[374,448,449,452],{"class":376,"line":405},[374,450,451],{"class":436},"  \"scripts\"",[374,453,454],{"class":384},": {\n",[374,456,458,461,463,466],{"class":376,"line":457},4,[374,459,460],{"class":436},"    \"dev\"",[374,462,440],{"class":384},[374,464,465],{"class":391},"\"nitro dev\"",[374,467,446],{"class":384},[374,469,471,474,476],{"class":376,"line":470},5,[374,472,473],{"class":436},"    \"build\"",[374,475,440],{"class":384},[374,477,478],{"class":391},"\"nitro build\"\n",[374,480,482],{"class":376,"line":481},6,[374,483,484],{"class":384},"  },\n",[374,486,488,491],{"class":376,"line":487},7,[374,489,490],{"class":436},"  \"devDependencies\"",[374,492,454],{"class":384},[374,494,496,499,501,504],{"class":376,"line":495},8,[374,497,498],{"class":436},"    \"mono-jsx\"",[374,500,440],{"class":384},[374,502,503],{"class":391},"\"latest\"",[374,505,446],{"class":384},[374,507,509,512,514],{"class":376,"line":508},9,[374,510,511],{"class":436},"    \"nitro\"",[374,513,440],{"class":384},[374,515,516],{"class":391},"\"latest\"\n",[374,518,520],{"class":376,"line":519},10,[374,521,522],{"class":384},"  }\n",[374,524,526],{"class":376,"line":525},11,[374,527,528],{"class":384},"}\n",[364,530,534],{"className":531,"code":532,"filename":362,"language":533,"meta":5,"style":5},"language-tsx shiki shiki-themes github-light github-dark github-dark","export default () => (\n  \u003Chtml>\n    \u003Ch1>Nitro + mongo-jsx works!\u003C/h1>\n  \u003C/html>\n);\n","tsx",[371,535,536,551,563,578,587],{"__ignoreMap":5},[374,537,538,540,542,545,548],{"class":376,"line":377},[374,539,408],{"class":380},[374,541,411],{"class":380},[374,543,544],{"class":384}," () ",[374,546,547],{"class":380},"=>",[374,549,550],{"class":384}," (\n",[374,552,553,556,560],{"class":376,"line":398},[374,554,555],{"class":384},"  \u003C",[374,557,559],{"class":558},"sByVh","html",[374,561,562],{"class":384},">\n",[374,564,565,568,571,574,576],{"class":376,"line":405},[374,566,567],{"class":384},"    \u003C",[374,569,570],{"class":558},"h1",[374,572,573],{"class":384},">Nitro + mongo-jsx works!\u003C/",[374,575,570],{"class":558},[374,577,562],{"class":384},[374,579,580,583,585],{"class":376,"line":457},[374,581,582],{"class":384},"  \u003C/",[374,584,559],{"class":558},[374,586,562],{"class":384},[374,588,589],{"class":376,"line":470},[374,590,591],{"class":384},");\n",[364,593,596],{"className":421,"code":594,"filename":595,"language":424,"meta":5,"style":5},"{\n  \"extends\": \"nitro/tsconfig\",\n  \"compilerOptions\": {\n    \"jsx\": \"react-jsx\",\n    \"jsxImportSource\": \"mono-jsx\"\n  }\n}\n","tsconfig.json",[371,597,598,602,614,621,633,643,647],{"__ignoreMap":5},[374,599,600],{"class":376,"line":377},[374,601,431],{"class":384},[374,603,604,607,609,612],{"class":376,"line":398},[374,605,606],{"class":436},"  \"extends\"",[374,608,440],{"class":384},[374,610,611],{"class":391},"\"nitro/tsconfig\"",[374,613,446],{"class":384},[374,615,616,619],{"class":376,"line":405},[374,617,618],{"class":436},"  \"compilerOptions\"",[374,620,454],{"class":384},[374,622,623,626,628,631],{"class":376,"line":457},[374,624,625],{"class":436},"    \"jsx\"",[374,627,440],{"class":384},[374,629,630],{"class":391},"\"react-jsx\"",[374,632,446],{"class":384},[374,634,635,638,640],{"class":376,"line":470},[374,636,637],{"class":436},"    \"jsxImportSource\"",[374,639,440],{"class":384},[374,641,642],{"class":391},"\"mono-jsx\"\n",[374,644,645],{"class":376,"line":481},[374,646,522],{"class":384},[374,648,649],{"class":376,"line":487},[374,650,528],{"class":384},[364,652,655],{"className":366,"code":653,"filename":654,"language":369,"meta":5,"style":5},"import { defineConfig } from \"vite\";\nimport { nitro } from \"nitro/vite\";\n\nexport default defineConfig({ plugins: [nitro()] });\n","vite.config.ts",[371,656,657,670,684,688],{"__ignoreMap":5},[374,658,659,661,663,665,668],{"class":376,"line":377},[374,660,381],{"class":380},[374,662,385],{"class":384},[374,664,388],{"class":380},[374,666,667],{"class":391}," \"vite\"",[374,669,395],{"class":384},[374,671,672,674,677,679,682],{"class":376,"line":398},[374,673,381],{"class":380},[374,675,676],{"class":384}," { nitro } ",[374,678,388],{"class":380},[374,680,681],{"class":391}," \"nitro/vite\"",[374,683,395],{"class":384},[374,685,686],{"class":376,"line":405},[374,687,402],{"emptyLinePlaceholder":401},[374,689,690,692,694,696,699,702],{"class":376,"line":457},[374,691,408],{"class":380},[374,693,411],{"class":380},[374,695,415],{"class":414},[374,697,698],{"class":384},"({ plugins: [",[374,700,701],{"class":414},"nitro",[374,703,704],{"class":384},"()] });\n",[706,707,58],"h2",{"id":708},"server-entry",[364,710,711],{"className":531,"code":532,"filename":362,"language":533,"meta":5,"style":5},[371,712,713,725,733,745,753],{"__ignoreMap":5},[374,714,715,717,719,721,723],{"class":376,"line":377},[374,716,408],{"class":380},[374,718,411],{"class":380},[374,720,544],{"class":384},[374,722,547],{"class":380},[374,724,550],{"class":384},[374,726,727,729,731],{"class":376,"line":398},[374,728,555],{"class":384},[374,730,559],{"class":558},[374,732,562],{"class":384},[374,734,735,737,739,741,743],{"class":376,"line":405},[374,736,567],{"class":384},[374,738,570],{"class":558},[374,740,573],{"class":384},[374,742,570],{"class":558},[374,744,562],{"class":384},[374,746,747,749,751],{"class":376,"line":457},[374,748,582],{"class":384},[374,750,559],{"class":558},[374,752,562],{"class":384},[374,754,755],{"class":376,"line":470},[374,756,591],{"class":384},[758,759,760,761,763],"p",{},"Nitro auto-detects ",[371,762,362],{}," and uses mono-jsx to transform JSX into HTML. Export a function that returns JSX, and Nitro sends the rendered HTML as the response.",[706,765,767],{"id":766},"learn-more","Learn More",[769,770,771,777],"ul",{},[772,773,774],"li",{},[775,776,18],"a",{"href":19},[772,778,779],{},[775,780,784],{"href":781,"rel":782},"https://github.com/aspect-dev/mono-jsx",[783],"nofollow","mono-jsx",[786,787,788],"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);}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .sByVh, html code.shiki .sByVh{--shiki-light:#22863A;--shiki-default:#85E89D;--shiki-dark:#85E89D}",{"title":5,"searchDepth":398,"depth":398,"links":790},[791,792],{"id":708,"depth":398,"text":58},{"id":766,"depth":398,"text":767},"md","i-lucide-brackets",{"automd":401},{},{"title":276,"description":277},"examples/mono-jsx/README","q6LhN68nR4qFlNcN6_di8My3rCNZWUkxHKooJrfg63E",[801,802],null,{"title":281,"path":803,"stem":804,"description":282,"children":-1},"/examples/nano-jsx","examples/nano-jsx/README",1773050454599]