[{"data":1,"prerenderedAt":1330},["ShallowReactive",2],{"navigation":3,"examples-nav":377,"-examples-renderer":478,"-examples-renderer-surround":1327},[4,83,212,218,374],{"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,208],{"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},"Zephyr Cloud","/deploy/providers/zephyr","2.deploy/20.providers/zephyr",{"title":209,"path":210,"stem":211},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":213,"path":214,"stem":215,"children":216,"icon":36},"Config","/config","3.config/0.index",[217],{"title":213,"path":214,"stem":215,"icon":36},{"title":219,"path":220,"stem":221,"children":222,"icon":224},"Examples","/examples","4.examples/0.index",[223,225,230,235,240,245,249,254,259,264,269,274,279,283,288,292,296,301,306,311,316,321,326,331,336,341,345,350,355,359,364,369],{"title":219,"path":220,"stem":221,"icon":224},"i-lucide-folder-code",{"title":226,"path":227,"stem":228,"icon":229},"API Routes","/examples/api-routes","4.examples/api-routes","i-lucide-route",{"title":231,"path":232,"stem":233,"icon":234},"Auto Imports","/examples/auto-imports","4.examples/auto-imports","i-lucide-import",{"title":236,"path":237,"stem":238,"icon":239},"Cached Handler","/examples/cached-handler","4.examples/cached-handler","i-lucide-clock",{"title":241,"path":242,"stem":243,"icon":244},"Custom Error Handler","/examples/custom-error-handler","4.examples/custom-error-handler","i-lucide-alert-circle",{"title":38,"path":246,"stem":247,"icon":248},"/examples/database","4.examples/database","i-lucide-database",{"title":250,"path":251,"stem":252,"icon":253},"Elysia","/examples/elysia","4.examples/elysia","i-skill-icons-elysia-dark",{"title":255,"path":256,"stem":257,"icon":258},"Express","/examples/express","4.examples/express","i-simple-icons-express",{"title":260,"path":261,"stem":262,"icon":263},"Fastify","/examples/fastify","4.examples/fastify","i-simple-icons-fastify",{"title":265,"path":266,"stem":267,"icon":268},"Hello World","/examples/hello-world","4.examples/hello-world","i-lucide-sparkles",{"title":270,"path":271,"stem":272,"icon":273},"Hono","/examples/hono","4.examples/hono","i-logos-hono",{"title":275,"path":276,"stem":277,"icon":278},"Import Alias","/examples/import-alias","4.examples/import-alias","i-lucide-at-sign",{"title":280,"path":281,"stem":282,"icon":46},"Middleware","/examples/middleware","4.examples/middleware",{"title":284,"path":285,"stem":286,"icon":287},"Mono JSX","/examples/mono-jsx","4.examples/mono-jsx","i-lucide-brackets",{"title":289,"path":290,"stem":291,"icon":287},"Nano JSX","/examples/nano-jsx","4.examples/nano-jsx",{"title":48,"path":293,"stem":294,"icon":295},"/examples/plugins","4.examples/plugins","i-lucide-plug",{"title":297,"path":298,"stem":299,"icon":300},"Custom Renderer","/examples/renderer","4.examples/renderer","i-lucide-code",{"title":302,"path":303,"stem":304,"icon":305},"Runtime Config","/examples/runtime-config","4.examples/runtime-config","i-lucide-settings",{"title":307,"path":308,"stem":309,"icon":310},"Server Fetch","/examples/server-fetch","4.examples/server-fetch","i-lucide-arrow-right-left",{"title":312,"path":313,"stem":314,"icon":315},"Shiki","/examples/shiki","4.examples/shiki","i-lucide-highlighter",{"title":317,"path":318,"stem":319,"icon":320},"Virtual Routes","/examples/virtual-routes","4.examples/virtual-routes","i-lucide-box",{"title":322,"path":323,"stem":324,"icon":325},"Vite Nitro Plugin","/examples/vite-nitro-plugin","4.examples/vite-nitro-plugin","i-logos-vitejs",{"title":327,"path":328,"stem":329,"icon":330},"Vite RSC","/examples/vite-rsc","4.examples/vite-rsc","i-logos-react",{"title":332,"path":333,"stem":334,"icon":335},"Vite SSR HTML","/examples/vite-ssr-html","4.examples/vite-ssr-html","i-logos-html-5",{"title":337,"path":338,"stem":339,"icon":340},"SSR with Preact","/examples/vite-ssr-preact","4.examples/vite-ssr-preact","i-logos-preact",{"title":342,"path":343,"stem":344,"icon":330},"SSR with React","/examples/vite-ssr-react","4.examples/vite-ssr-react",{"title":346,"path":347,"stem":348,"icon":349},"SSR with SolidJS","/examples/vite-ssr-solid","4.examples/vite-ssr-solid","i-logos-solidjs-icon",{"title":351,"path":352,"stem":353,"icon":354},"SSR with TanStack Router","/examples/vite-ssr-tsr-react","4.examples/vite-ssr-tsr-react","i-simple-icons-tanstack",{"title":356,"path":357,"stem":358,"icon":354},"SSR with TanStack Start","/examples/vite-ssr-tss-react","4.examples/vite-ssr-tss-react",{"title":360,"path":361,"stem":362,"icon":363},"SSR with Vue Router","/examples/vite-ssr-vue-router","4.examples/vite-ssr-vue-router","i-logos-vue",{"title":365,"path":366,"stem":367,"icon":368},"Vite + tRPC","/examples/vite-trpc","4.examples/vite-trpc","i-simple-icons-trpc",{"title":370,"path":371,"stem":372,"icon":373},"WebSocket","/examples/websocket","4.examples/websocket","i-lucide-radio",{"title":5,"path":375,"stem":376},"/","index",[378,383,387,390,393,396,400,403,406,409,412,415,418,422,425,428,431,434,437,441,444,448,451,454,457,460,463,466,469,472,475],{"title":226,"description":379,"meta":380,"path":227},"File-based API routing with HTTP method support and dynamic parameters.",{"automd":381,"category":382,"icon":229},true,"features",{"title":231,"description":384,"meta":385,"path":232},"Automatic imports for utilities and composables.",{"automd":381,"category":386,"icon":234},"config",{"title":236,"description":388,"meta":389,"path":237},"Cache route responses with configurable bypass logic.",{"automd":381,"category":382,"icon":239},{"title":241,"description":391,"meta":392,"path":242},"Customize error responses with a global error handler.",{"automd":381,"category":382,"icon":244},{"title":38,"description":394,"meta":395,"path":246},"Built-in database support with SQL template literals.",{"automd":381,"category":382,"icon":248},{"title":250,"description":397,"meta":398,"path":251},"Integrate Elysia with Nitro using the server entry.",{"automd":381,"category":399,"icon":253},"backend frameworks",{"title":255,"description":401,"meta":402,"path":256},"Integrate Express with Nitro using the server entry.",{"automd":381,"category":399,"icon":258},{"title":260,"description":404,"meta":405,"path":261},"Integrate Fastify with Nitro using the server entry.",{"automd":381,"category":399,"icon":263},{"title":265,"description":407,"meta":408,"path":266},"Minimal Nitro server using the web standard fetch handler.",{"automd":381,"category":382,"icon":268},{"title":270,"description":410,"meta":411,"path":271},"Integrate Hono with Nitro using the server entry.",{"automd":381,"category":399,"icon":273},{"title":275,"description":413,"meta":414,"path":276},"Custom import aliases for cleaner module paths.",{"automd":381,"category":386,"icon":278},{"title":280,"description":416,"meta":417,"path":281},"Request middleware for authentication, logging, and request modification.",{"automd":381,"category":382,"icon":46},{"title":284,"description":419,"meta":420,"path":285},"Server-side JSX rendering in Nitro with mono-jsx.",{"automd":381,"category":421,"icon":287},"server side rendering",{"title":289,"description":423,"meta":424,"path":290},"Server-side JSX rendering in Nitro with nano-jsx.",{"automd":381,"category":421,"icon":287},{"title":48,"description":426,"meta":427,"path":293},"Extend Nitro with custom plugins for hooks and lifecycle events.",{"automd":381,"category":382,"icon":295},{"title":297,"description":429,"meta":430,"path":298},"Build a custom HTML renderer in Nitro with server-side data fetching.",{"automd":381,"category":421,"icon":300},{"title":302,"description":432,"meta":433,"path":303},"Environment-aware configuration with runtime access.",{"automd":381,"category":386,"icon":305},{"title":307,"description":435,"meta":436,"path":308},"Internal server-to-server requests without network overhead.",{"automd":381,"category":382,"icon":310},{"title":312,"description":438,"meta":439,"path":313},"Server-side syntax highlighting in Nitro with Shiki.",{"automd":381,"category":440,"icon":315},"integrations",{"title":317,"description":442,"meta":443,"path":318},"Define routes programmatically using Nitro's virtual module system.",{"automd":381,"category":382,"icon":320},{"title":322,"description":445,"meta":446,"path":323},"Use Nitro as a Vite plugin for programmatic configuration.",{"automd":381,"category":447,"icon":325},"vite",{"title":327,"description":449,"meta":450,"path":328},"React Server Components with Vite and Nitro.",{"automd":381,"category":447,"icon":330},{"title":332,"description":452,"meta":453,"path":333},"Server-side rendering with vanilla HTML, Vite, and Nitro.",{"automd":381,"category":421,"icon":335},{"title":337,"description":455,"meta":456,"path":338},"Server-side rendering with Preact in Nitro using Vite.",{"automd":381,"category":421,"icon":340},{"title":342,"description":458,"meta":459,"path":343},"Server-side rendering with React in Nitro using Vite.",{"automd":381,"category":421,"icon":330},{"title":346,"description":461,"meta":462,"path":347},"Server-side rendering with SolidJS in Nitro using Vite.",{"automd":381,"category":421,"icon":349},{"title":351,"description":464,"meta":465,"path":352},"Client-side routing with TanStack Router in Nitro using Vite.",{"automd":381,"category":421,"icon":354},{"title":356,"description":467,"meta":468,"path":357},"Full-stack React with TanStack Start in Nitro using Vite.",{"automd":381,"category":421,"icon":354},{"title":360,"description":470,"meta":471,"path":361},"Server-side rendering with Vue Router in Nitro using Vite.",{"automd":381,"category":421,"icon":363},{"title":365,"description":473,"meta":474,"path":366},"End-to-end typesafe APIs with tRPC in Nitro using Vite.",{"automd":381,"category":447,"icon":368},{"title":370,"description":476,"meta":477,"path":371},"Real-time bidirectional communication with WebSocket support.",{"automd":381,"category":382,"icon":373},{"id":479,"title":297,"body":480,"description":429,"extension":1322,"meta":1323,"navigation":1324,"path":298,"seo":1325,"stem":299,"__hash__":1326},"content/4.examples/renderer.md",{"type":481,"value":482,"toc":1317,"icon":300},"minimark",[483,1037,1045,1049,1231,1240,1249,1253,1289,1300,1304,1313],[484,485,488,573,666,915,939,993],"code-tree",{":expand-all":486,"default-value":487},"true","renderer.ts",[489,490,495],"pre",{"className":491,"code":492,"filename":493,"language":494,"meta":5,"style":5},"language-ts shiki shiki-themes github-light github-dark github-dark","import { defineConfig } from \"nitro\";\n\nexport default defineConfig({\n  serverDir: \"./\",\n  renderer: { handler: \"./renderer\" },\n});\n","nitro.config.ts","ts",[496,497,498,521,527,543,555,567],"code",{"__ignoreMap":5},[499,500,503,507,511,514,518],"span",{"class":501,"line":502},"line",1,[499,504,506],{"class":505},"so5gQ","import",[499,508,510],{"class":509},"slsVL"," { defineConfig } ",[499,512,513],{"class":505},"from",[499,515,517],{"class":516},"sfrk1"," \"nitro\"",[499,519,520],{"class":509},";\n",[499,522,524],{"class":501,"line":523},2,[499,525,526],{"emptyLinePlaceholder":381},"\n",[499,528,530,533,536,540],{"class":501,"line":529},3,[499,531,532],{"class":505},"export",[499,534,535],{"class":505}," default",[499,537,539],{"class":538},"shcOC"," defineConfig",[499,541,542],{"class":509},"({\n",[499,544,546,549,552],{"class":501,"line":545},4,[499,547,548],{"class":509},"  serverDir: ",[499,550,551],{"class":516},"\"./\"",[499,553,554],{"class":509},",\n",[499,556,558,561,564],{"class":501,"line":557},5,[499,559,560],{"class":509},"  renderer: { handler: ",[499,562,563],{"class":516},"\"./renderer\"",[499,565,566],{"class":509}," },\n",[499,568,570],{"class":501,"line":569},6,[499,571,572],{"class":509},"});\n",[489,574,579],{"className":575,"code":576,"filename":577,"language":578,"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    \"nitro\": \"latest\"\n  }\n}\n","package.json","json",[496,580,581,586,600,608,620,630,635,643,654,660],{"__ignoreMap":5},[499,582,583],{"class":501,"line":502},[499,584,585],{"class":509},"{\n",[499,587,588,592,595,598],{"class":501,"line":523},[499,589,591],{"class":590},"suiK_","  \"type\"",[499,593,594],{"class":509},": ",[499,596,597],{"class":516},"\"module\"",[499,599,554],{"class":509},[499,601,602,605],{"class":501,"line":529},[499,603,604],{"class":590},"  \"scripts\"",[499,606,607],{"class":509},": {\n",[499,609,610,613,615,618],{"class":501,"line":545},[499,611,612],{"class":590},"    \"dev\"",[499,614,594],{"class":509},[499,616,617],{"class":516},"\"nitro dev\"",[499,619,554],{"class":509},[499,621,622,625,627],{"class":501,"line":557},[499,623,624],{"class":590},"    \"build\"",[499,626,594],{"class":509},[499,628,629],{"class":516},"\"nitro build\"\n",[499,631,632],{"class":501,"line":569},[499,633,634],{"class":509},"  },\n",[499,636,638,641],{"class":501,"line":637},7,[499,639,640],{"class":590},"  \"devDependencies\"",[499,642,607],{"class":509},[499,644,646,649,651],{"class":501,"line":645},8,[499,647,648],{"class":590},"    \"nitro\"",[499,650,594],{"class":509},[499,652,653],{"class":516},"\"latest\"\n",[499,655,657],{"class":501,"line":656},9,[499,658,659],{"class":509},"  }\n",[499,661,663],{"class":501,"line":662},10,[499,664,665],{"class":509},"}\n",[489,667,669],{"className":491,"code":668,"filename":487,"language":494,"meta":5,"style":5},"import { fetch } from \"nitro\";\n\nexport default async function renderer({ url }: { req: Request; url: URL }) {\n  const apiRes = await fetch(\"/api/hello\").then((res) => res.text());\n  return new Response(\n    /* html */ `\u003C!DOCTYPE html>\n    \u003Chtml>\n    \u003Chead>\n      \u003Ctitle>Custom Renderer\u003C/title>\n    \u003C/head>\n    \u003Cbody>\n      \u003Ch1>Hello from custom renderer!\u003C/h1>\n      \u003Cp>Current path: ${url.pathname}\u003C/p>\n      \u003Cp>API says: ${apiRes}\u003C/p>\n    \u003C/body>\n    \u003C/html>`,\n    { headers: { \"content-type\": \"text/html; charset=utf-8\" } }\n  );\n}\n",[496,670,671,684,688,740,790,804,813,818,823,828,833,839,845,862,873,879,887,904,910],{"__ignoreMap":5},[499,672,673,675,678,680,682],{"class":501,"line":502},[499,674,506],{"class":505},[499,676,677],{"class":509}," { fetch } ",[499,679,513],{"class":505},[499,681,517],{"class":516},[499,683,520],{"class":509},[499,685,686],{"class":501,"line":523},[499,687,526],{"emptyLinePlaceholder":381},[499,689,690,692,694,697,700,703,706,710,713,716,719,722,724,727,730,732,734,737],{"class":501,"line":529},[499,691,532],{"class":505},[499,693,535],{"class":505},[499,695,696],{"class":505}," async",[499,698,699],{"class":505}," function",[499,701,702],{"class":538}," renderer",[499,704,705],{"class":509},"({ ",[499,707,709],{"class":708},"sQHwn","url",[499,711,712],{"class":509}," }",[499,714,715],{"class":505},":",[499,717,718],{"class":509}," { ",[499,720,721],{"class":708},"req",[499,723,715],{"class":505},[499,725,726],{"class":538}," Request",[499,728,729],{"class":509},"; ",[499,731,709],{"class":708},[499,733,715],{"class":505},[499,735,736],{"class":538}," URL",[499,738,739],{"class":509}," }) {\n",[499,741,742,745,748,751,754,757,760,763,766,769,772,775,778,781,784,787],{"class":501,"line":545},[499,743,744],{"class":505},"  const",[499,746,747],{"class":590}," apiRes",[499,749,750],{"class":505}," =",[499,752,753],{"class":505}," await",[499,755,756],{"class":538}," fetch",[499,758,759],{"class":509},"(",[499,761,762],{"class":516},"\"/api/hello\"",[499,764,765],{"class":509},").",[499,767,768],{"class":538},"then",[499,770,771],{"class":509},"((",[499,773,774],{"class":708},"res",[499,776,777],{"class":509},") ",[499,779,780],{"class":505},"=>",[499,782,783],{"class":509}," res.",[499,785,786],{"class":538},"text",[499,788,789],{"class":509},"());\n",[499,791,792,795,798,801],{"class":501,"line":557},[499,793,794],{"class":505},"  return",[499,796,797],{"class":505}," new",[499,799,800],{"class":538}," Response",[499,802,803],{"class":509},"(\n",[499,805,806,810],{"class":501,"line":569},[499,807,809],{"class":808},"sCsY4","    /* html */",[499,811,812],{"class":516}," `\u003C!DOCTYPE html>\n",[499,814,815],{"class":501,"line":637},[499,816,817],{"class":516},"    \u003Chtml>\n",[499,819,820],{"class":501,"line":645},[499,821,822],{"class":516},"    \u003Chead>\n",[499,824,825],{"class":501,"line":656},[499,826,827],{"class":516},"      \u003Ctitle>Custom Renderer\u003C/title>\n",[499,829,830],{"class":501,"line":662},[499,831,832],{"class":516},"    \u003C/head>\n",[499,834,836],{"class":501,"line":835},11,[499,837,838],{"class":516},"    \u003Cbody>\n",[499,840,842],{"class":501,"line":841},12,[499,843,844],{"class":516},"      \u003Ch1>Hello from custom renderer!\u003C/h1>\n",[499,846,848,851,853,856,859],{"class":501,"line":847},13,[499,849,850],{"class":516},"      \u003Cp>Current path: ${",[499,852,709],{"class":509},[499,854,855],{"class":516},".",[499,857,858],{"class":509},"pathname",[499,860,861],{"class":516},"}\u003C/p>\n",[499,863,865,868,871],{"class":501,"line":864},14,[499,866,867],{"class":516},"      \u003Cp>API says: ${",[499,869,870],{"class":509},"apiRes",[499,872,861],{"class":516},[499,874,876],{"class":501,"line":875},15,[499,877,878],{"class":516},"    \u003C/body>\n",[499,880,882,885],{"class":501,"line":881},16,[499,883,884],{"class":516},"    \u003C/html>`",[499,886,554],{"class":509},[499,888,890,893,896,898,901],{"class":501,"line":889},17,[499,891,892],{"class":509},"    { headers: { ",[499,894,895],{"class":516},"\"content-type\"",[499,897,594],{"class":509},[499,899,900],{"class":516},"\"text/html; charset=utf-8\"",[499,902,903],{"class":509}," } }\n",[499,905,907],{"class":501,"line":906},18,[499,908,909],{"class":509},"  );\n",[499,911,913],{"class":501,"line":912},19,[499,914,665],{"class":509},[489,916,919],{"className":575,"code":917,"filename":918,"language":578,"meta":5,"style":5},"{\n  \"extends\": \"nitro/tsconfig\"\n}\n","tsconfig.json",[496,920,921,925,935],{"__ignoreMap":5},[499,922,923],{"class":501,"line":502},[499,924,585],{"class":509},[499,926,927,930,932],{"class":501,"line":523},[499,928,929],{"class":590},"  \"extends\"",[499,931,594],{"class":509},[499,933,934],{"class":516},"\"nitro/tsconfig\"\n",[499,936,937],{"class":501,"line":529},[499,938,665],{"class":509},[489,940,943],{"className":491,"code":941,"filename":942,"language":494,"meta":5,"style":5},"import { defineConfig } from \"vite\";\nimport { nitro } from \"nitro/vite\";\n\nexport default defineConfig({ plugins: [nitro()] });\n","vite.config.ts",[496,944,945,958,972,976],{"__ignoreMap":5},[499,946,947,949,951,953,956],{"class":501,"line":502},[499,948,506],{"class":505},[499,950,510],{"class":509},[499,952,513],{"class":505},[499,954,955],{"class":516}," \"vite\"",[499,957,520],{"class":509},[499,959,960,962,965,967,970],{"class":501,"line":523},[499,961,506],{"class":505},[499,963,964],{"class":509}," { nitro } ",[499,966,513],{"class":505},[499,968,969],{"class":516}," \"nitro/vite\"",[499,971,520],{"class":509},[499,973,974],{"class":501,"line":529},[499,975,526],{"emptyLinePlaceholder":381},[499,977,978,980,982,984,987,990],{"class":501,"line":545},[499,979,532],{"class":505},[499,981,535],{"class":505},[499,983,539],{"class":538},[499,985,986],{"class":509},"({ plugins: [",[499,988,989],{"class":538},"nitro",[499,991,992],{"class":509},"()] });\n",[489,994,997],{"className":491,"code":995,"filename":996,"language":494,"meta":5,"style":5},"import { defineHandler } from \"nitro/h3\";\n\nexport default defineHandler(() => \"Nitro is amazing!\");\n","api/hello.ts",[496,998,999,1013,1017],{"__ignoreMap":5},[499,1000,1001,1003,1006,1008,1011],{"class":501,"line":502},[499,1002,506],{"class":505},[499,1004,1005],{"class":509}," { defineHandler } ",[499,1007,513],{"class":505},[499,1009,1010],{"class":516}," \"nitro/h3\"",[499,1012,520],{"class":509},[499,1014,1015],{"class":501,"line":523},[499,1016,526],{"emptyLinePlaceholder":381},[499,1018,1019,1021,1023,1026,1029,1031,1034],{"class":501,"line":529},[499,1020,532],{"class":505},[499,1022,535],{"class":505},[499,1024,1025],{"class":538}," defineHandler",[499,1027,1028],{"class":509},"(() ",[499,1030,780],{"class":505},[499,1032,1033],{"class":516}," \"Nitro is amazing!\"",[499,1035,1036],{"class":509},");\n",[1038,1039,1040,1041,1044],"p",{},"Create a custom renderer that generates HTML responses with data from API routes. Use Nitro's internal ",[496,1042,1043],{},"fetch"," to call routes without network overhead.",[1046,1047,18],"h2",{"id":1048},"renderer",[489,1050,1051],{"className":491,"code":668,"filename":487,"language":494,"meta":5,"style":5},[496,1052,1053,1065,1069,1107,1141,1151,1157,1161,1165,1169,1173,1177,1181,1193,1201,1205,1211,1223,1227],{"__ignoreMap":5},[499,1054,1055,1057,1059,1061,1063],{"class":501,"line":502},[499,1056,506],{"class":505},[499,1058,677],{"class":509},[499,1060,513],{"class":505},[499,1062,517],{"class":516},[499,1064,520],{"class":509},[499,1066,1067],{"class":501,"line":523},[499,1068,526],{"emptyLinePlaceholder":381},[499,1070,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1091,1093,1095,1097,1099,1101,1103,1105],{"class":501,"line":529},[499,1072,532],{"class":505},[499,1074,535],{"class":505},[499,1076,696],{"class":505},[499,1078,699],{"class":505},[499,1080,702],{"class":538},[499,1082,705],{"class":509},[499,1084,709],{"class":708},[499,1086,712],{"class":509},[499,1088,715],{"class":505},[499,1090,718],{"class":509},[499,1092,721],{"class":708},[499,1094,715],{"class":505},[499,1096,726],{"class":538},[499,1098,729],{"class":509},[499,1100,709],{"class":708},[499,1102,715],{"class":505},[499,1104,736],{"class":538},[499,1106,739],{"class":509},[499,1108,1109,1111,1113,1115,1117,1119,1121,1123,1125,1127,1129,1131,1133,1135,1137,1139],{"class":501,"line":545},[499,1110,744],{"class":505},[499,1112,747],{"class":590},[499,1114,750],{"class":505},[499,1116,753],{"class":505},[499,1118,756],{"class":538},[499,1120,759],{"class":509},[499,1122,762],{"class":516},[499,1124,765],{"class":509},[499,1126,768],{"class":538},[499,1128,771],{"class":509},[499,1130,774],{"class":708},[499,1132,777],{"class":509},[499,1134,780],{"class":505},[499,1136,783],{"class":509},[499,1138,786],{"class":538},[499,1140,789],{"class":509},[499,1142,1143,1145,1147,1149],{"class":501,"line":557},[499,1144,794],{"class":505},[499,1146,797],{"class":505},[499,1148,800],{"class":538},[499,1150,803],{"class":509},[499,1152,1153,1155],{"class":501,"line":569},[499,1154,809],{"class":808},[499,1156,812],{"class":516},[499,1158,1159],{"class":501,"line":637},[499,1160,817],{"class":516},[499,1162,1163],{"class":501,"line":645},[499,1164,822],{"class":516},[499,1166,1167],{"class":501,"line":656},[499,1168,827],{"class":516},[499,1170,1171],{"class":501,"line":662},[499,1172,832],{"class":516},[499,1174,1175],{"class":501,"line":835},[499,1176,838],{"class":516},[499,1178,1179],{"class":501,"line":841},[499,1180,844],{"class":516},[499,1182,1183,1185,1187,1189,1191],{"class":501,"line":847},[499,1184,850],{"class":516},[499,1186,709],{"class":509},[499,1188,855],{"class":516},[499,1190,858],{"class":509},[499,1192,861],{"class":516},[499,1194,1195,1197,1199],{"class":501,"line":864},[499,1196,867],{"class":516},[499,1198,870],{"class":509},[499,1200,861],{"class":516},[499,1202,1203],{"class":501,"line":875},[499,1204,878],{"class":516},[499,1206,1207,1209],{"class":501,"line":881},[499,1208,884],{"class":516},[499,1210,554],{"class":509},[499,1212,1213,1215,1217,1219,1221],{"class":501,"line":889},[499,1214,892],{"class":509},[499,1216,895],{"class":516},[499,1218,594],{"class":509},[499,1220,900],{"class":516},[499,1222,903],{"class":509},[499,1224,1225],{"class":501,"line":906},[499,1226,909],{"class":509},[499,1228,1229],{"class":501,"line":912},[499,1230,665],{"class":509},[1038,1232,1233,1234,1236,1237,855],{},"Nitro auto-detects ",[496,1235,487],{}," in your project root and uses it for all non-API routes. The renderer function receives the request URL and returns a ",[496,1238,1239],{},"Response",[1038,1241,1242,1243,1245,1246,1248],{},"Use ",[496,1244,1043],{}," from ",[496,1247,989],{}," to call API routes without network overhead—these requests stay in-process.",[1046,1250,1252],{"id":1251},"api-route","API Route",[489,1254,1255],{"className":491,"code":995,"filename":996,"language":494,"meta":5,"style":5},[496,1256,1257,1269,1273],{"__ignoreMap":5},[499,1258,1259,1261,1263,1265,1267],{"class":501,"line":502},[499,1260,506],{"class":505},[499,1262,1005],{"class":509},[499,1264,513],{"class":505},[499,1266,1010],{"class":516},[499,1268,520],{"class":509},[499,1270,1271],{"class":501,"line":523},[499,1272,526],{"emptyLinePlaceholder":381},[499,1274,1275,1277,1279,1281,1283,1285,1287],{"class":501,"line":529},[499,1276,532],{"class":505},[499,1278,535],{"class":505},[499,1280,1025],{"class":538},[499,1282,1028],{"class":509},[499,1284,780],{"class":505},[499,1286,1033],{"class":516},[499,1288,1036],{"class":509},[1038,1290,1291,1292,1295,1296,1299],{},"Define API routes in the ",[496,1293,1294],{},"api/"," directory. When the renderer calls ",[496,1297,1298],{},"fetch(\"/api/hello\")",", this handler runs and returns its response.",[1046,1301,1303],{"id":1302},"learn-more","Learn More",[1305,1306,1307],"ul",{},[1308,1309,1310],"li",{},[1311,1312,18],"a",{"href":19},[1314,1315,1316],"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 .sQHwn, html code.shiki .sQHwn{--shiki-light:#E36209;--shiki-default:#FFAB70;--shiki-dark:#FFAB70}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":5,"searchDepth":523,"depth":523,"links":1318},[1319,1320,1321],{"id":1048,"depth":523,"text":18},{"id":1251,"depth":523,"text":1252},{"id":1302,"depth":523,"text":1303},"md",{"automd":381,"category":421,"icon":300},{"icon":300},{"title":297,"description":429},"SF5Q_1txMBqYwEYgqWIN9MCrQQbFKafbLfzwS4_ge1U",[1328,1329],{"title":48,"path":293,"stem":294,"description":426,"icon":295,"children":-1},{"title":302,"path":303,"stem":304,"description":432,"icon":305,"children":-1},1773181199196]