[{"data":1,"prerenderedAt":1490},["ShallowReactive",2],{"navigation":3,"-deploy-providers-vercel":389,"-deploy-providers-vercel-surround":1485},[4,83,212,218,374,386],{"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":375,"path":376,"stem":377,"children":378},"Blog","/blog","9.blog",[379,382],{"title":375,"path":376,"stem":380,"icon":381},"9.blog/index","i-lucide-file-text",{"title":383,"path":384,"stem":385,"icon":381},"Nitro v3 Beta is here!","/blog/v3-beta","9.blog/1.v3-beta",{"title":5,"path":387,"stem":388},"/","index",{"id":390,"title":197,"body":391,"description":1479,"extension":1480,"meta":1481,"navigation":1482,"path":198,"seo":1483,"stem":199,"__hash__":1484},"content/2.deploy/20.providers/vercel.md",{"type":392,"value":393,"toc":1460},"minimark",[394,406,411,423,428,431,464,472,477,485,489,496,504,508,511,527,596,606,648,652,672,680,842,859,863,876,931,935,942,965,969,975,1014,1026,1030,1034,1051,1148,1152,1156,1170,1174,1189,1193,1196,1199,1291,1295,1298,1305,1383,1456],[395,396,397,401,402],"p",{},[398,399,400],"strong",{},"Preset:"," ",[403,404,405],"code",{},"vercel",[407,408],"read-more",{"title":409,"to":410},"Vercel Framework Support","https://vercel.com/docs/frameworks",[412,413,414],"note",{},[395,415,416,417,422],{},"Integration with this provider is possible with ",[418,419,421],"a",{"href":420},"/deploy/#zero-config-providers","zero configuration",".",[424,425,427],"h2",{"id":426},"getting-started","Getting started",[395,429,430],{},"Deploying to Vercel comes with the following features:",[432,433,434,443,450,457],"ul",{},[435,436,437],"li",{},[418,438,442],{"href":439,"rel":440},"https://vercel.com/docs/deployments/environments",[441],"nofollow","Preview deployments",[435,444,445],{},[418,446,449],{"href":447,"rel":448},"https://vercel.com/docs/fluid-compute",[441],"Fluid compute",[435,451,452],{},[418,453,456],{"href":454,"rel":455},"https://vercel.com/docs/observability",[441],"Observability",[435,458,459],{},[418,460,463],{"href":461,"rel":462},"https://vercel.com/docs/vercel-firewall",[441],"Vercel Firewall",[395,465,466,467,422],{},"And much more. Learn more in ",[418,468,471],{"href":469,"rel":470},"https://vercel.com/docs",[441],"the Vercel documentation",[473,474,476],"h3",{"id":475},"deploy-with-git","Deploy with Git",[395,478,479,480,422],{},"Vercel supports Nitro with zero-configuration. ",[418,481,484],{"href":482,"rel":483},"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fnitro",[441],"Deploy Nitro to Vercel now",[424,486,488],{"id":487},"api-routes","API routes",[395,490,491,492,495],{},"Nitro ",[403,493,494],{},"/api"," directory isn't compatible with Vercel. Instead, you should use:",[432,497,498],{},[435,499,500,503],{},[403,501,502],{},"routes/api/"," for standalone usage",[424,505,507],{"id":506},"bun-runtime","Bun runtime",[407,509],{"title":197,"to":510},"https://vercel.com/docs/functions/runtimes/bun",[395,512,513,514,518,519,522,523,526],{},"You can use ",[418,515,101],{"href":516,"rel":517},"https://bun.com",[441]," instead of Node.js by specifying the runtime using the ",[403,520,521],{},"vercel.functions"," key inside ",[403,524,525],{},"nitro.config",":",[528,529,534],"pre",{"className":530,"code":531,"filename":532,"language":533,"meta":5,"style":5},"language-ts shiki shiki-themes github-light github-dark github-dark","export default defineNitroConfig({\n  vercel: {\n    functions: {\n      runtime: \"bun1.x\"\n    }\n  }\n})\n","nitro.config.ts","ts",[403,535,536,556,562,568,578,584,590],{"__ignoreMap":5},[537,538,541,545,548,552],"span",{"class":539,"line":540},"line",1,[537,542,544],{"class":543},"so5gQ","export",[537,546,547],{"class":543}," default",[537,549,551],{"class":550},"shcOC"," defineNitroConfig",[537,553,555],{"class":554},"slsVL","({\n",[537,557,559],{"class":539,"line":558},2,[537,560,561],{"class":554},"  vercel: {\n",[537,563,565],{"class":539,"line":564},3,[537,566,567],{"class":554},"    functions: {\n",[537,569,571,574],{"class":539,"line":570},4,[537,572,573],{"class":554},"      runtime: ",[537,575,577],{"class":576},"sfrk1","\"bun1.x\"\n",[537,579,581],{"class":539,"line":580},5,[537,582,583],{"class":554},"    }\n",[537,585,587],{"class":539,"line":586},6,[537,588,589],{"class":554},"  }\n",[537,591,593],{"class":539,"line":592},7,[537,594,595],{"class":554},"})\n",[395,597,598,599,602,603,526],{},"Alternatively, Nitro also detects Bun automatically if you specify a ",[403,600,601],{},"bunVersion"," property in your ",[403,604,605],{},"vercel.json",[528,607,611],{"className":608,"code":609,"filename":605,"language":610,"meta":5,"style":5},"language-json shiki shiki-themes github-light github-dark github-dark","{\n  \"$schema\": \"https://openapi.vercel.sh/vercel.json\",\n  \"bunVersion\": \"1.x\"\n}\n","json",[403,612,613,618,633,643],{"__ignoreMap":5},[537,614,615],{"class":539,"line":540},[537,616,617],{"class":554},"{\n",[537,619,620,624,627,630],{"class":539,"line":558},[537,621,623],{"class":622},"suiK_","  \"$schema\"",[537,625,626],{"class":554},": ",[537,628,629],{"class":576},"\"https://openapi.vercel.sh/vercel.json\"",[537,631,632],{"class":554},",\n",[537,634,635,638,640],{"class":539,"line":564},[537,636,637],{"class":622},"  \"bunVersion\"",[537,639,626],{"class":554},[537,641,642],{"class":576},"\"1.x\"\n",[537,644,645],{"class":539,"line":570},[537,646,647],{"class":554},"}\n",[424,649,651],{"id":650},"per-route-function-configuration","Per-route function configuration",[395,653,654,655,658,659,664,665,667,668,671],{},"Use ",[403,656,657],{},"vercel.functionRules"," to override ",[418,660,663],{"href":661,"rel":662},"https://vercel.com/docs/build-output-api/primitives#serverless-function-configuration",[441],"serverless function settings"," for specific routes. Each key is a route pattern and its value is a partial function configuration object that gets merged with the base ",[403,666,521],{}," config. Note: array properties (e.g., ",[403,669,670],{},"regions",") from route config will replace the base config arrays rather than merging them.",[395,673,674,675,422],{},"This is useful when certain routes need different resource limits, regions, or features like ",[418,676,679],{"href":677,"rel":678},"https://vercel.com/docs/queues",[441],"Vercel Queues triggers",[528,681,683],{"className":530,"code":682,"filename":532,"language":533,"meta":5,"style":5},"import { defineNitroConfig } from \"nitro/config\";\n\nexport default defineNitroConfig({\n  vercel: {\n    functionRules: {\n      \"/api/heavy-computation\": {\n        maxDuration: 800,\n        memory: 4096,\n      },\n      \"/api/regional\": {\n        regions: [\"lhr1\", \"cdg1\"],\n      },\n      \"/api/queues/process-order\": {\n        experimentalTriggers: [{ type: \"queue/v2beta\", topic: \"orders\" }],\n      },\n    },\n  },\n});\n",[403,684,685,702,708,718,722,727,735,745,756,762,770,788,793,801,819,824,830,836],{"__ignoreMap":5},[537,686,687,690,693,696,699],{"class":539,"line":540},[537,688,689],{"class":543},"import",[537,691,692],{"class":554}," { defineNitroConfig } ",[537,694,695],{"class":543},"from",[537,697,698],{"class":576}," \"nitro/config\"",[537,700,701],{"class":554},";\n",[537,703,704],{"class":539,"line":558},[537,705,707],{"emptyLinePlaceholder":706},true,"\n",[537,709,710,712,714,716],{"class":539,"line":564},[537,711,544],{"class":543},[537,713,547],{"class":543},[537,715,551],{"class":550},[537,717,555],{"class":554},[537,719,720],{"class":539,"line":570},[537,721,561],{"class":554},[537,723,724],{"class":539,"line":580},[537,725,726],{"class":554},"    functionRules: {\n",[537,728,729,732],{"class":539,"line":586},[537,730,731],{"class":576},"      \"/api/heavy-computation\"",[537,733,734],{"class":554},": {\n",[537,736,737,740,743],{"class":539,"line":592},[537,738,739],{"class":554},"        maxDuration: ",[537,741,742],{"class":622},"800",[537,744,632],{"class":554},[537,746,748,751,754],{"class":539,"line":747},8,[537,749,750],{"class":554},"        memory: ",[537,752,753],{"class":622},"4096",[537,755,632],{"class":554},[537,757,759],{"class":539,"line":758},9,[537,760,761],{"class":554},"      },\n",[537,763,765,768],{"class":539,"line":764},10,[537,766,767],{"class":576},"      \"/api/regional\"",[537,769,734],{"class":554},[537,771,773,776,779,782,785],{"class":539,"line":772},11,[537,774,775],{"class":554},"        regions: [",[537,777,778],{"class":576},"\"lhr1\"",[537,780,781],{"class":554},", ",[537,783,784],{"class":576},"\"cdg1\"",[537,786,787],{"class":554},"],\n",[537,789,791],{"class":539,"line":790},12,[537,792,761],{"class":554},[537,794,796,799],{"class":539,"line":795},13,[537,797,798],{"class":576},"      \"/api/queues/process-order\"",[537,800,734],{"class":554},[537,802,804,807,810,813,816],{"class":539,"line":803},14,[537,805,806],{"class":554},"        experimentalTriggers: [{ type: ",[537,808,809],{"class":576},"\"queue/v2beta\"",[537,811,812],{"class":554},", topic: ",[537,814,815],{"class":576},"\"orders\"",[537,817,818],{"class":554}," }],\n",[537,820,822],{"class":539,"line":821},15,[537,823,761],{"class":554},[537,825,827],{"class":539,"line":826},16,[537,828,829],{"class":554},"    },\n",[537,831,833],{"class":539,"line":832},17,[537,834,835],{"class":554},"  },\n",[537,837,839],{"class":539,"line":838},18,[537,840,841],{"class":554},"});\n",[395,843,844,845,850,851,854,855,858],{},"Route patterns support wildcards via ",[418,846,849],{"href":847,"rel":848},"https://github.com/h3js/rou3",[441],"rou3"," matching (e.g., ",[403,852,853],{},"/api/slow/**"," matches all routes under ",[403,856,857],{},"/api/slow/",").",[424,860,862],{"id":861},"proxy-route-rules","Proxy route rules",[395,864,865,866,869,870,875],{},"Nitro automatically optimizes ",[403,867,868],{},"proxy"," route rules on Vercel by generating ",[418,871,874],{"href":872,"rel":873},"https://vercel.com/docs/rewrites",[441],"CDN-level rewrites"," at build time. This means matching requests are proxied at the edge without invoking a serverless function, reducing latency and cost.",[528,877,879],{"className":530,"code":878,"filename":532,"language":533,"meta":5,"style":5},"export default defineNitroConfig({\n  routeRules: {\n    // Proxied at CDN level — no function invocation\n    \"/api/**\": {\n      proxy: \"https://api.example.com/**\",\n    },\n  },\n});\n",[403,880,881,891,896,902,909,919,923,927],{"__ignoreMap":5},[537,882,883,885,887,889],{"class":539,"line":540},[537,884,544],{"class":543},[537,886,547],{"class":543},[537,888,551],{"class":550},[537,890,555],{"class":554},[537,892,893],{"class":539,"line":558},[537,894,895],{"class":554},"  routeRules: {\n",[537,897,898],{"class":539,"line":564},[537,899,901],{"class":900},"sCsY4","    // Proxied at CDN level — no function invocation\n",[537,903,904,907],{"class":539,"line":570},[537,905,906],{"class":576},"    \"/api/**\"",[537,908,734],{"class":554},[537,910,911,914,917],{"class":539,"line":580},[537,912,913],{"class":554},"      proxy: ",[537,915,916],{"class":576},"\"https://api.example.com/**\"",[537,918,632],{"class":554},[537,920,921],{"class":539,"line":586},[537,922,829],{"class":554},[537,924,925],{"class":539,"line":592},[537,926,835],{"class":554},[537,928,929],{"class":539,"line":747},[537,930,841],{"class":554},[473,932,934],{"id":933},"when-cdn-rewrites-apply","When CDN rewrites apply",[395,936,937,938,941],{},"A proxy rule is offloaded to a Vercel CDN rewrite when ",[398,939,940],{},"all"," of the following are true:",[432,943,944,958],{},[435,945,946,947,950,951,954,955,858],{},"The target is an ",[398,948,949],{},"external URL"," (starts with ",[403,952,953],{},"http://"," or ",[403,956,957],{},"https://",[435,959,960,961,964],{},"No advanced ",[403,962,963],{},"ProxyOptions"," are set on the rule.",[473,966,968],{"id":967},"fallback-to-runtime-proxy","Fallback to runtime proxy",[395,970,971,972,974],{},"When the proxy rule uses any of the following ",[403,973,963],{},", Nitro keeps it as a runtime proxy handled by the serverless function:",[432,976,977,983,993,999,1008],{},[435,978,979,982],{},[403,980,981],{},"headers"," — custom headers on the outgoing request to the upstream",[435,984,985,988,989,992],{},[403,986,987],{},"forwardHeaders"," / ",[403,990,991],{},"filterHeaders"," — header filtering",[435,994,995,998],{},[403,996,997],{},"fetchOptions"," — custom fetch options",[435,1000,1001,988,1004,1007],{},[403,1002,1003],{},"cookieDomainRewrite",[403,1005,1006],{},"cookiePathRewrite"," — cookie manipulation",[435,1009,1010,1013],{},[403,1011,1012],{},"onResponse"," — response callback",[412,1015,1016],{},[395,1017,1018,1019,1021,1022,1025],{},"Response headers defined on the route rule via the ",[403,1020,981],{}," option are still applied to CDN-level rewrites. Only request-level ",[403,1023,1024],{},"ProxyOptions.headers"," (sent to the upstream) require a runtime proxy.",[424,1027,1029],{"id":1028},"scheduled-tasks-cron-jobs","Scheduled tasks (Cron Jobs)",[407,1031],{"title":1032,"to":1033},"Vercel Cron Jobs","https://vercel.com/docs/cron-jobs",[395,1035,1036,1037,1043,1044,1047,1048,1050],{},"Nitro automatically converts your ",[418,1038,1040],{"href":1039},"/docs/tasks#scheduled-tasks",[403,1041,1042],{},"scheduledTasks"," configuration into ",[418,1045,1032],{"href":1033,"rel":1046},[441]," at build time. Define your schedules in your Nitro config and deploy - no manual ",[403,1049,605],{}," cron configuration required.",[528,1052,1054],{"className":530,"code":1053,"filename":532,"language":533,"meta":5,"style":5},"import { defineNitroConfig } from \"nitro/config\";\n\nexport default defineNitroConfig({\n  experimental: {\n    tasks: true\n  },\n  scheduledTasks: {\n    // Run `cms:update` every hour\n    '0 * * * *': ['cms:update'],\n    // Run `db:cleanup` every day at midnight\n    '0 0 * * *': ['db:cleanup']\n  }\n})\n",[403,1055,1056,1068,1072,1082,1087,1095,1099,1104,1109,1122,1127,1140,1144],{"__ignoreMap":5},[537,1057,1058,1060,1062,1064,1066],{"class":539,"line":540},[537,1059,689],{"class":543},[537,1061,692],{"class":554},[537,1063,695],{"class":543},[537,1065,698],{"class":576},[537,1067,701],{"class":554},[537,1069,1070],{"class":539,"line":558},[537,1071,707],{"emptyLinePlaceholder":706},[537,1073,1074,1076,1078,1080],{"class":539,"line":564},[537,1075,544],{"class":543},[537,1077,547],{"class":543},[537,1079,551],{"class":550},[537,1081,555],{"class":554},[537,1083,1084],{"class":539,"line":570},[537,1085,1086],{"class":554},"  experimental: {\n",[537,1088,1089,1092],{"class":539,"line":580},[537,1090,1091],{"class":554},"    tasks: ",[537,1093,1094],{"class":622},"true\n",[537,1096,1097],{"class":539,"line":586},[537,1098,835],{"class":554},[537,1100,1101],{"class":539,"line":592},[537,1102,1103],{"class":554},"  scheduledTasks: {\n",[537,1105,1106],{"class":539,"line":747},[537,1107,1108],{"class":900},"    // Run `cms:update` every hour\n",[537,1110,1111,1114,1117,1120],{"class":539,"line":758},[537,1112,1113],{"class":576},"    '0 * * * *'",[537,1115,1116],{"class":554},": [",[537,1118,1119],{"class":576},"'cms:update'",[537,1121,787],{"class":554},[537,1123,1124],{"class":539,"line":764},[537,1125,1126],{"class":900},"    // Run `db:cleanup` every day at midnight\n",[537,1128,1129,1132,1134,1137],{"class":539,"line":772},[537,1130,1131],{"class":576},"    '0 0 * * *'",[537,1133,1116],{"class":554},[537,1135,1136],{"class":576},"'db:cleanup'",[537,1138,1139],{"class":554},"]\n",[537,1141,1142],{"class":539,"line":790},[537,1143,589],{"class":554},[537,1145,1146],{"class":539,"line":795},[537,1147,595],{"class":554},[473,1149,1151],{"id":1150},"secure-cron-job-endpoints","Secure cron job endpoints",[407,1153],{"title":1154,"to":1155},"Securing cron jobs","https://vercel.com/docs/cron-jobs/manage-cron-jobs#securing-cron-jobs",[395,1157,1158,1159,1162,1163,1165,1166,1169],{},"To prevent unauthorized access to the cron handler, set a ",[403,1160,1161],{},"CRON_SECRET"," environment variable in your Vercel project settings. When ",[403,1164,1161],{}," is set, Nitro validates the ",[403,1167,1168],{},"Authorization"," header on every cron invocation.",[424,1171,1173],{"id":1172},"custom-build-output-configuration","Custom build output configuration",[395,1175,1176,1177,1182,1183,522,1186,1188],{},"You can provide additional ",[418,1178,1181],{"href":1179,"rel":1180},"https://vercel.com/docs/build-output-api/v3",[441],"build output configuration"," using ",[403,1184,1185],{},"vercel.config",[403,1187,525],{},". It will be merged with built-in auto-generated config.",[424,1190,1192],{"id":1191},"on-demand-incremental-static-regeneration-isr","On-Demand incremental static regeneration (ISR)",[395,1194,1195],{},"On-demand revalidation allows you to purge the cache for an ISR route whenever you want, foregoing the time interval required with background revalidation.",[395,1197,1198],{},"To revalidate a page on demand:",[1200,1201,1203,1221,1284],"steps",{"level":1202},"4",[1204,1205,1206,1207],"h4",{},"Create an Environment Variable which will store a revalidation secret",[432,1208,1209],{},[435,1210,1211,1212,954,1215,1220],{},"You can use the command ",[403,1213,1214],{},"openssl rand -base64 32",[418,1216,1219],{"href":1217,"rel":1218},"https://generate-secret.vercel.app/32",[441],"Generate a Secret"," to generate a random value.",[1204,1222,1223,1224],{},"Update your configuration:",[528,1225,1227],{"className":530,"code":1226,"filename":532,"language":533,"meta":5,"style":5},"import { defineNitroConfig } from \"nitro/config\";\n\nexport default defineNitroConfig({\n  vercel: {\n    config: {\n      bypassToken: process.env.VERCEL_BYPASS_TOKEN\n    }\n  }\n})\n",[403,1228,1229,1241,1245,1255,1259,1264,1272,1276,1280],{"__ignoreMap":5},[537,1230,1231,1233,1235,1237,1239],{"class":539,"line":540},[537,1232,689],{"class":543},[537,1234,692],{"class":554},[537,1236,695],{"class":543},[537,1238,698],{"class":576},[537,1240,701],{"class":554},[537,1242,1243],{"class":539,"line":558},[537,1244,707],{"emptyLinePlaceholder":706},[537,1246,1247,1249,1251,1253],{"class":539,"line":564},[537,1248,544],{"class":543},[537,1250,547],{"class":543},[537,1252,551],{"class":550},[537,1254,555],{"class":554},[537,1256,1257],{"class":539,"line":570},[537,1258,561],{"class":554},[537,1260,1261],{"class":539,"line":580},[537,1262,1263],{"class":554},"    config: {\n",[537,1265,1266,1269],{"class":539,"line":586},[537,1267,1268],{"class":554},"      bypassToken: process.env.",[537,1270,1271],{"class":622},"VERCEL_BYPASS_TOKEN\n",[537,1273,1274],{"class":539,"line":592},[537,1275,583],{"class":554},[537,1277,1278],{"class":539,"line":747},[537,1279,589],{"class":554},[537,1281,1282],{"class":539,"line":758},[537,1283,595],{"class":554},[1204,1285,1286,1287,1290],{},"To trigger \"On-Demand Incremental Static Regeneration (ISR)\" and revalidate a path to a Prerender Function, make a GET or HEAD request to that path with a header of x-prerender-revalidate: ",[403,1288,1289],{},"bypassToken",". When that Prerender Function endpoint is accessed with this header set, the cache will be revalidated. The next request to that function should return a fresh response.",[473,1292,1294],{"id":1293},"fine-grained-isr-config-via-route-rules","Fine-grained ISR config via route rules",[395,1296,1297],{},"By default, query params affect cache keys but are not passed to the route handler unless specified.",[395,1299,1300,1301,1304],{},"You can pass an options object to ",[403,1302,1303],{},"isr"," route rule to configure caching behavior.",[432,1306,1307,1321,1327,1356,1373],{},[435,1308,1309,1312,1313,1316,1317,1320],{},[403,1310,1311],{},"expiration",": Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to ",[403,1314,1315],{},"false"," (or ",[403,1318,1319],{},"isr: true"," route rule) means it will never expire.",[435,1322,1323,1326],{},[403,1324,1325],{},"group",": Group number of the asset. Prerender assets with the same group number will all be re-validated at the same time.",[435,1328,1329,1332,1333],{},[403,1330,1331],{},"allowQuery",": List of query string parameter names that will be cached independently.\n",[432,1334,1335,1338,1345],{},[435,1336,1337],{},"If an empty array, query values are not considered for caching.",[435,1339,1340,1341,1344],{},"If ",[403,1342,1343],{},"undefined"," each unique query value is cached independently.",[435,1346,1347,1348,1351,1352,1355],{},"For wildcard ",[403,1349,1350],{},"/**"," route rules, ",[403,1353,1354],{},"url"," is always added",[435,1357,1358,1361,1362,1365,1366,1369,1370,1372],{},[403,1359,1360],{},"passQuery",": When ",[403,1363,1364],{},"true",", the query string will be present on the ",[403,1367,1368],{},"request"," argument passed to the invoked function. The ",[403,1371,1331],{}," filter still applies.",[435,1374,1375,1361,1378,1380,1381],{},[403,1376,1377],{},"exposeErrBody",[403,1379,1364],{},", expose the response body regardless of status code including error status codes. (default ",[403,1382,1315],{},[528,1384,1386],{"className":530,"code":1385,"language":533,"meta":5,"style":5},"export default defineNitroConfig({\n  routeRules: {\n    \"/products/**\": {\n      isr: {\n        allowQuery: [\"q\"],\n        passQuery: true,\n        exposeErrBody: true\n      },\n    },\n  },\n});\n",[403,1387,1388,1398,1402,1409,1414,1424,1433,1440,1444,1448,1452],{"__ignoreMap":5},[537,1389,1390,1392,1394,1396],{"class":539,"line":540},[537,1391,544],{"class":543},[537,1393,547],{"class":543},[537,1395,551],{"class":550},[537,1397,555],{"class":554},[537,1399,1400],{"class":539,"line":558},[537,1401,895],{"class":554},[537,1403,1404,1407],{"class":539,"line":564},[537,1405,1406],{"class":576},"    \"/products/**\"",[537,1408,734],{"class":554},[537,1410,1411],{"class":539,"line":570},[537,1412,1413],{"class":554},"      isr: {\n",[537,1415,1416,1419,1422],{"class":539,"line":580},[537,1417,1418],{"class":554},"        allowQuery: [",[537,1420,1421],{"class":576},"\"q\"",[537,1423,787],{"class":554},[537,1425,1426,1429,1431],{"class":539,"line":586},[537,1427,1428],{"class":554},"        passQuery: ",[537,1430,1364],{"class":622},[537,1432,632],{"class":554},[537,1434,1435,1438],{"class":539,"line":592},[537,1436,1437],{"class":554},"        exposeErrBody: ",[537,1439,1094],{"class":622},[537,1441,1442],{"class":539,"line":747},[537,1443,761],{"class":554},[537,1445,1446],{"class":539,"line":758},[537,1447,829],{"class":554},[537,1449,1450],{"class":539,"line":764},[537,1451,835],{"class":554},[537,1453,1454],{"class":539,"line":772},[537,1455,841],{"class":554},[1457,1458,1459],"style",{},"html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}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 .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 .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":5,"searchDepth":558,"depth":558,"links":1461},[1462,1465,1466,1467,1468,1472,1475,1476],{"id":426,"depth":558,"text":427,"children":1463},[1464],{"id":475,"depth":564,"text":476},{"id":487,"depth":558,"text":488},{"id":506,"depth":558,"text":507},{"id":650,"depth":558,"text":651},{"id":861,"depth":558,"text":862,"children":1469},[1470,1471],{"id":933,"depth":564,"text":934},{"id":967,"depth":564,"text":968},{"id":1028,"depth":558,"text":1029,"children":1473},[1474],{"id":1150,"depth":564,"text":1151},{"id":1172,"depth":558,"text":1173},{"id":1191,"depth":558,"text":1192,"children":1477},[1478],{"id":1293,"depth":564,"text":1294},"Deploy Nitro apps to Vercel.","md",{},{},{"title":197,"description":1479},"4mjPKuTVOK4U6lI_Vq0OAKqa6RY-eU1SHCsNivex2WM",[1486,1488],{"title":193,"path":194,"stem":195,"description":1487,"children":-1},"Deploy Nitro apps to StormKit.",{"title":201,"path":202,"stem":203,"description":1489,"children":-1},"Deploy Nitro apps to Zeabur.",1775151961350]