[{"data":1,"prerenderedAt":1495},["ShallowReactive",2],{"navigation":3,"-deploy-providers-vercel":394,"-deploy-providers-vercel-surround":1490},[4,88,217,223,379,391],{"title":5,"path":6,"stem":7,"children":8,"icon":87},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77,82],{"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},"OpenAPI","/docs/openapi","1.docs/50.openapi","ri:contract-line",{"title":53,"path":54,"stem":55,"icon":56},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":58,"path":59,"stem":60,"icon":61},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":63,"path":64,"stem":65,"icon":66},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":68,"path":69,"stem":70,"icon":71},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":73,"path":74,"stem":75,"icon":76},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":78,"path":79,"stem":80,"icon":81},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":83,"path":84,"stem":85,"icon":86},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":89,"path":90,"stem":91,"children":92,"icon":94},"Deploy","/deploy","2.deploy/0.index",[93,95,116],{"title":89,"path":90,"stem":91,"icon":94},"ri:upload-cloud-2-line",{"title":96,"path":97,"stem":98,"children":99,"page":115},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[100,105,110],{"title":101,"path":102,"stem":103,"icon":104},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":106,"path":107,"stem":108,"icon":109},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":111,"path":112,"stem":113,"icon":114},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":117,"path":118,"stem":119,"children":120,"page":115},"Providers","/deploy/providers","2.deploy/20.providers",[121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213],{"title":122,"path":123,"stem":124},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":126,"path":127,"stem":128},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":130,"path":131,"stem":132},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":134,"path":135,"stem":136},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":138,"path":139,"stem":140},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":142,"path":143,"stem":144},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":146,"path":147,"stem":148},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":150,"path":151,"stem":152},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":154,"path":155,"stem":156},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":158,"path":159,"stem":160},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":162,"path":163,"stem":164},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":166,"path":167,"stem":168},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":170,"path":171,"stem":172},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":174,"path":175,"stem":176},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":178,"path":179,"stem":180},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":182,"path":183,"stem":184},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":186,"path":187,"stem":188},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":190,"path":191,"stem":192},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":194,"path":195,"stem":196},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":198,"path":199,"stem":200},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":202,"path":203,"stem":204},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":206,"path":207,"stem":208},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":210,"path":211,"stem":212},"Zephyr Cloud","/deploy/providers/zephyr","2.deploy/20.providers/zephyr",{"title":214,"path":215,"stem":216},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":218,"path":219,"stem":220,"children":221,"icon":36},"Config","/config","3.config/0.index",[222],{"title":218,"path":219,"stem":220,"icon":36},{"title":224,"path":225,"stem":226,"children":227,"icon":229},"Examples","/examples","4.examples/0.index",[228,230,235,240,245,250,254,259,264,269,274,279,284,288,293,297,301,306,311,316,321,326,331,336,341,346,350,355,360,364,369,374],{"title":224,"path":225,"stem":226,"icon":229},"i-lucide-folder-code",{"title":231,"path":232,"stem":233,"icon":234},"API Routes","/examples/api-routes","4.examples/api-routes","i-lucide-route",{"title":236,"path":237,"stem":238,"icon":239},"Auto Imports","/examples/auto-imports","4.examples/auto-imports","i-lucide-import",{"title":241,"path":242,"stem":243,"icon":244},"Cached Handler","/examples/cached-handler","4.examples/cached-handler","i-lucide-clock",{"title":246,"path":247,"stem":248,"icon":249},"Custom Error Handler","/examples/custom-error-handler","4.examples/custom-error-handler","i-lucide-alert-circle",{"title":38,"path":251,"stem":252,"icon":253},"/examples/database","4.examples/database","i-lucide-database",{"title":255,"path":256,"stem":257,"icon":258},"Elysia","/examples/elysia","4.examples/elysia","i-skill-icons-elysia-dark",{"title":260,"path":261,"stem":262,"icon":263},"Express","/examples/express","4.examples/express","i-simple-icons-express",{"title":265,"path":266,"stem":267,"icon":268},"Fastify","/examples/fastify","4.examples/fastify","i-simple-icons-fastify",{"title":270,"path":271,"stem":272,"icon":273},"Hello World","/examples/hello-world","4.examples/hello-world","i-lucide-sparkles",{"title":275,"path":276,"stem":277,"icon":278},"Hono","/examples/hono","4.examples/hono","i-logos-hono",{"title":280,"path":281,"stem":282,"icon":283},"Import Alias","/examples/import-alias","4.examples/import-alias","i-lucide-at-sign",{"title":285,"path":286,"stem":287,"icon":46},"Middleware","/examples/middleware","4.examples/middleware",{"title":289,"path":290,"stem":291,"icon":292},"Mono JSX","/examples/mono-jsx","4.examples/mono-jsx","i-lucide-brackets",{"title":294,"path":295,"stem":296,"icon":292},"Nano JSX","/examples/nano-jsx","4.examples/nano-jsx",{"title":53,"path":298,"stem":299,"icon":300},"/examples/plugins","4.examples/plugins","i-lucide-plug",{"title":302,"path":303,"stem":304,"icon":305},"Custom Renderer","/examples/renderer","4.examples/renderer","i-lucide-code",{"title":307,"path":308,"stem":309,"icon":310},"Runtime Config","/examples/runtime-config","4.examples/runtime-config","i-lucide-settings",{"title":312,"path":313,"stem":314,"icon":315},"Server Fetch","/examples/server-fetch","4.examples/server-fetch","i-lucide-arrow-right-left",{"title":317,"path":318,"stem":319,"icon":320},"Shiki","/examples/shiki","4.examples/shiki","i-lucide-highlighter",{"title":322,"path":323,"stem":324,"icon":325},"Virtual Routes","/examples/virtual-routes","4.examples/virtual-routes","i-lucide-box",{"title":327,"path":328,"stem":329,"icon":330},"Vite Nitro Plugin","/examples/vite-nitro-plugin","4.examples/vite-nitro-plugin","i-logos-vitejs",{"title":332,"path":333,"stem":334,"icon":335},"Vite RSC","/examples/vite-rsc","4.examples/vite-rsc","i-logos-react",{"title":337,"path":338,"stem":339,"icon":340},"Vite SSR HTML","/examples/vite-ssr-html","4.examples/vite-ssr-html","i-logos-html-5",{"title":342,"path":343,"stem":344,"icon":345},"SSR with Preact","/examples/vite-ssr-preact","4.examples/vite-ssr-preact","i-logos-preact",{"title":347,"path":348,"stem":349,"icon":335},"SSR with React","/examples/vite-ssr-react","4.examples/vite-ssr-react",{"title":351,"path":352,"stem":353,"icon":354},"SSR with SolidJS","/examples/vite-ssr-solid","4.examples/vite-ssr-solid","i-logos-solidjs-icon",{"title":356,"path":357,"stem":358,"icon":359},"SSR with TanStack Router","/examples/vite-ssr-tsr-react","4.examples/vite-ssr-tsr-react","i-simple-icons-tanstack",{"title":361,"path":362,"stem":363,"icon":359},"SSR with TanStack Start","/examples/vite-ssr-tss-react","4.examples/vite-ssr-tss-react",{"title":365,"path":366,"stem":367,"icon":368},"SSR with Vue Router","/examples/vite-ssr-vue-router","4.examples/vite-ssr-vue-router","i-logos-vue",{"title":370,"path":371,"stem":372,"icon":373},"Vite + tRPC","/examples/vite-trpc","4.examples/vite-trpc","i-simple-icons-trpc",{"title":375,"path":376,"stem":377,"icon":378},"WebSocket","/examples/websocket","4.examples/websocket","i-lucide-radio",{"title":380,"path":381,"stem":382,"children":383},"Blog","/blog","9.blog",[384,387],{"title":380,"path":381,"stem":385,"icon":386},"9.blog/index","i-lucide-file-text",{"title":388,"path":389,"stem":390,"icon":386},"Nitro v3 Beta is here!","/blog/v3-beta","9.blog/1.v3-beta",{"title":5,"path":392,"stem":393},"/","index",{"id":395,"title":202,"body":396,"description":1484,"extension":1485,"meta":1486,"navigation":1487,"path":203,"seo":1488,"stem":204,"__hash__":1489},"content/2.deploy/20.providers/vercel.md",{"type":397,"value":398,"toc":1465},"minimark",[399,411,416,428,433,436,469,477,482,490,494,501,509,513,516,532,601,611,653,657,677,685,847,864,868,881,936,940,947,970,974,980,1019,1031,1035,1039,1056,1153,1157,1161,1175,1179,1194,1198,1201,1204,1296,1300,1303,1310,1388,1461],[400,401,402,406,407],"p",{},[403,404,405],"strong",{},"Preset:"," ",[408,409,410],"code",{},"vercel",[412,413],"read-more",{"title":414,"to":415},"Vercel Framework Support","https://vercel.com/docs/frameworks",[417,418,419],"note",{},[400,420,421,422,427],{},"Integration with this provider is possible with ",[423,424,426],"a",{"href":425},"/deploy/#zero-config-providers","zero configuration",".",[429,430,432],"h2",{"id":431},"getting-started","Getting started",[400,434,435],{},"Deploying to Vercel comes with the following features:",[437,438,439,448,455,462],"ul",{},[440,441,442],"li",{},[423,443,447],{"href":444,"rel":445},"https://vercel.com/docs/deployments/environments",[446],"nofollow","Preview deployments",[440,449,450],{},[423,451,454],{"href":452,"rel":453},"https://vercel.com/docs/fluid-compute",[446],"Fluid compute",[440,456,457],{},[423,458,461],{"href":459,"rel":460},"https://vercel.com/docs/observability",[446],"Observability",[440,463,464],{},[423,465,468],{"href":466,"rel":467},"https://vercel.com/docs/vercel-firewall",[446],"Vercel Firewall",[400,470,471,472,427],{},"And much more. Learn more in ",[423,473,476],{"href":474,"rel":475},"https://vercel.com/docs",[446],"the Vercel documentation",[478,479,481],"h3",{"id":480},"deploy-with-git","Deploy with Git",[400,483,484,485,427],{},"Vercel supports Nitro with zero-configuration. ",[423,486,489],{"href":487,"rel":488},"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fnitro",[446],"Deploy Nitro to Vercel now",[429,491,493],{"id":492},"api-routes","API routes",[400,495,496,497,500],{},"Nitro ",[408,498,499],{},"/api"," directory isn't compatible with Vercel. Instead, you should use:",[437,502,503],{},[440,504,505,508],{},[408,506,507],{},"routes/api/"," for standalone usage",[429,510,512],{"id":511},"bun-runtime","Bun runtime",[412,514],{"title":202,"to":515},"https://vercel.com/docs/functions/runtimes/bun",[400,517,518,519,523,524,527,528,531],{},"You can use ",[423,520,106],{"href":521,"rel":522},"https://bun.com",[446]," instead of Node.js by specifying the runtime using the ",[408,525,526],{},"vercel.functions"," key inside ",[408,529,530],{},"nitro.config",":",[533,534,539],"pre",{"className":535,"code":536,"filename":537,"language":538,"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",[408,540,541,561,567,573,583,589,595],{"__ignoreMap":5},[542,543,546,550,553,557],"span",{"class":544,"line":545},"line",1,[542,547,549],{"class":548},"so5gQ","export",[542,551,552],{"class":548}," default",[542,554,556],{"class":555},"shcOC"," defineNitroConfig",[542,558,560],{"class":559},"slsVL","({\n",[542,562,564],{"class":544,"line":563},2,[542,565,566],{"class":559},"  vercel: {\n",[542,568,570],{"class":544,"line":569},3,[542,571,572],{"class":559},"    functions: {\n",[542,574,576,579],{"class":544,"line":575},4,[542,577,578],{"class":559},"      runtime: ",[542,580,582],{"class":581},"sfrk1","\"bun1.x\"\n",[542,584,586],{"class":544,"line":585},5,[542,587,588],{"class":559},"    }\n",[542,590,592],{"class":544,"line":591},6,[542,593,594],{"class":559},"  }\n",[542,596,598],{"class":544,"line":597},7,[542,599,600],{"class":559},"})\n",[400,602,603,604,607,608,531],{},"Alternatively, Nitro also detects Bun automatically if you specify a ",[408,605,606],{},"bunVersion"," property in your ",[408,609,610],{},"vercel.json",[533,612,616],{"className":613,"code":614,"filename":610,"language":615,"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",[408,617,618,623,638,648],{"__ignoreMap":5},[542,619,620],{"class":544,"line":545},[542,621,622],{"class":559},"{\n",[542,624,625,629,632,635],{"class":544,"line":563},[542,626,628],{"class":627},"suiK_","  \"$schema\"",[542,630,631],{"class":559},": ",[542,633,634],{"class":581},"\"https://openapi.vercel.sh/vercel.json\"",[542,636,637],{"class":559},",\n",[542,639,640,643,645],{"class":544,"line":569},[542,641,642],{"class":627},"  \"bunVersion\"",[542,644,631],{"class":559},[542,646,647],{"class":581},"\"1.x\"\n",[542,649,650],{"class":544,"line":575},[542,651,652],{"class":559},"}\n",[429,654,656],{"id":655},"per-route-function-configuration","Per-route function configuration",[400,658,659,660,663,664,669,670,672,673,676],{},"Use ",[408,661,662],{},"vercel.functionRules"," to override ",[423,665,668],{"href":666,"rel":667},"https://vercel.com/docs/build-output-api/primitives#serverless-function-configuration",[446],"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 ",[408,671,526],{}," config. Note: array properties (e.g., ",[408,674,675],{},"regions",") from route config will replace the base config arrays rather than merging them.",[400,678,679,680,427],{},"This is useful when certain routes need different resource limits, regions, or features like ",[423,681,684],{"href":682,"rel":683},"https://vercel.com/docs/queues",[446],"Vercel Queues triggers",[533,686,688],{"className":535,"code":687,"filename":537,"language":538,"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",[408,689,690,707,713,723,727,732,740,750,761,767,775,793,798,806,824,829,835,841],{"__ignoreMap":5},[542,691,692,695,698,701,704],{"class":544,"line":545},[542,693,694],{"class":548},"import",[542,696,697],{"class":559}," { defineNitroConfig } ",[542,699,700],{"class":548},"from",[542,702,703],{"class":581}," \"nitro/config\"",[542,705,706],{"class":559},";\n",[542,708,709],{"class":544,"line":563},[542,710,712],{"emptyLinePlaceholder":711},true,"\n",[542,714,715,717,719,721],{"class":544,"line":569},[542,716,549],{"class":548},[542,718,552],{"class":548},[542,720,556],{"class":555},[542,722,560],{"class":559},[542,724,725],{"class":544,"line":575},[542,726,566],{"class":559},[542,728,729],{"class":544,"line":585},[542,730,731],{"class":559},"    functionRules: {\n",[542,733,734,737],{"class":544,"line":591},[542,735,736],{"class":581},"      \"/api/heavy-computation\"",[542,738,739],{"class":559},": {\n",[542,741,742,745,748],{"class":544,"line":597},[542,743,744],{"class":559},"        maxDuration: ",[542,746,747],{"class":627},"800",[542,749,637],{"class":559},[542,751,753,756,759],{"class":544,"line":752},8,[542,754,755],{"class":559},"        memory: ",[542,757,758],{"class":627},"4096",[542,760,637],{"class":559},[542,762,764],{"class":544,"line":763},9,[542,765,766],{"class":559},"      },\n",[542,768,770,773],{"class":544,"line":769},10,[542,771,772],{"class":581},"      \"/api/regional\"",[542,774,739],{"class":559},[542,776,778,781,784,787,790],{"class":544,"line":777},11,[542,779,780],{"class":559},"        regions: [",[542,782,783],{"class":581},"\"lhr1\"",[542,785,786],{"class":559},", ",[542,788,789],{"class":581},"\"cdg1\"",[542,791,792],{"class":559},"],\n",[542,794,796],{"class":544,"line":795},12,[542,797,766],{"class":559},[542,799,801,804],{"class":544,"line":800},13,[542,802,803],{"class":581},"      \"/api/queues/process-order\"",[542,805,739],{"class":559},[542,807,809,812,815,818,821],{"class":544,"line":808},14,[542,810,811],{"class":559},"        experimentalTriggers: [{ type: ",[542,813,814],{"class":581},"\"queue/v2beta\"",[542,816,817],{"class":559},", topic: ",[542,819,820],{"class":581},"\"orders\"",[542,822,823],{"class":559}," }],\n",[542,825,827],{"class":544,"line":826},15,[542,828,766],{"class":559},[542,830,832],{"class":544,"line":831},16,[542,833,834],{"class":559},"    },\n",[542,836,838],{"class":544,"line":837},17,[542,839,840],{"class":559},"  },\n",[542,842,844],{"class":544,"line":843},18,[542,845,846],{"class":559},"});\n",[400,848,849,850,855,856,859,860,863],{},"Route patterns support wildcards via ",[423,851,854],{"href":852,"rel":853},"https://github.com/h3js/rou3",[446],"rou3"," matching (e.g., ",[408,857,858],{},"/api/slow/**"," matches all routes under ",[408,861,862],{},"/api/slow/",").",[429,865,867],{"id":866},"proxy-route-rules","Proxy route rules",[400,869,870,871,874,875,880],{},"Nitro automatically optimizes ",[408,872,873],{},"proxy"," route rules on Vercel by generating ",[423,876,879],{"href":877,"rel":878},"https://vercel.com/docs/rewrites",[446],"CDN-level rewrites"," at build time. This means matching requests are proxied at the edge without invoking a serverless function, reducing latency and cost.",[533,882,884],{"className":535,"code":883,"filename":537,"language":538,"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",[408,885,886,896,901,907,914,924,928,932],{"__ignoreMap":5},[542,887,888,890,892,894],{"class":544,"line":545},[542,889,549],{"class":548},[542,891,552],{"class":548},[542,893,556],{"class":555},[542,895,560],{"class":559},[542,897,898],{"class":544,"line":563},[542,899,900],{"class":559},"  routeRules: {\n",[542,902,903],{"class":544,"line":569},[542,904,906],{"class":905},"sCsY4","    // Proxied at CDN level — no function invocation\n",[542,908,909,912],{"class":544,"line":575},[542,910,911],{"class":581},"    \"/api/**\"",[542,913,739],{"class":559},[542,915,916,919,922],{"class":544,"line":585},[542,917,918],{"class":559},"      proxy: ",[542,920,921],{"class":581},"\"https://api.example.com/**\"",[542,923,637],{"class":559},[542,925,926],{"class":544,"line":591},[542,927,834],{"class":559},[542,929,930],{"class":544,"line":597},[542,931,840],{"class":559},[542,933,934],{"class":544,"line":752},[542,935,846],{"class":559},[478,937,939],{"id":938},"when-cdn-rewrites-apply","When CDN rewrites apply",[400,941,942,943,946],{},"A proxy rule is offloaded to a Vercel CDN rewrite when ",[403,944,945],{},"all"," of the following are true:",[437,948,949,963],{},[440,950,951,952,955,956,959,960,863],{},"The target is an ",[403,953,954],{},"external URL"," (starts with ",[408,957,958],{},"http://"," or ",[408,961,962],{},"https://",[440,964,965,966,969],{},"No advanced ",[408,967,968],{},"ProxyOptions"," are set on the rule.",[478,971,973],{"id":972},"fallback-to-runtime-proxy","Fallback to runtime proxy",[400,975,976,977,979],{},"When the proxy rule uses any of the following ",[408,978,968],{},", Nitro keeps it as a runtime proxy handled by the serverless function:",[437,981,982,988,998,1004,1013],{},[440,983,984,987],{},[408,985,986],{},"headers"," — custom headers on the outgoing request to the upstream",[440,989,990,993,994,997],{},[408,991,992],{},"forwardHeaders"," / ",[408,995,996],{},"filterHeaders"," — header filtering",[440,999,1000,1003],{},[408,1001,1002],{},"fetchOptions"," — custom fetch options",[440,1005,1006,993,1009,1012],{},[408,1007,1008],{},"cookieDomainRewrite",[408,1010,1011],{},"cookiePathRewrite"," — cookie manipulation",[440,1014,1015,1018],{},[408,1016,1017],{},"onResponse"," — response callback",[417,1020,1021],{},[400,1022,1023,1024,1026,1027,1030],{},"Response headers defined on the route rule via the ",[408,1025,986],{}," option are still applied to CDN-level rewrites. Only request-level ",[408,1028,1029],{},"ProxyOptions.headers"," (sent to the upstream) require a runtime proxy.",[429,1032,1034],{"id":1033},"scheduled-tasks-cron-jobs","Scheduled tasks (Cron Jobs)",[412,1036],{"title":1037,"to":1038},"Vercel Cron Jobs","https://vercel.com/docs/cron-jobs",[400,1040,1041,1042,1048,1049,1052,1053,1055],{},"Nitro automatically converts your ",[423,1043,1045],{"href":1044},"/docs/tasks#scheduled-tasks",[408,1046,1047],{},"scheduledTasks"," configuration into ",[423,1050,1037],{"href":1038,"rel":1051},[446]," at build time. Define your schedules in your Nitro config and deploy - no manual ",[408,1054,610],{}," cron configuration required.",[533,1057,1059],{"className":535,"code":1058,"filename":537,"language":538,"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",[408,1060,1061,1073,1077,1087,1092,1100,1104,1109,1114,1127,1132,1145,1149],{"__ignoreMap":5},[542,1062,1063,1065,1067,1069,1071],{"class":544,"line":545},[542,1064,694],{"class":548},[542,1066,697],{"class":559},[542,1068,700],{"class":548},[542,1070,703],{"class":581},[542,1072,706],{"class":559},[542,1074,1075],{"class":544,"line":563},[542,1076,712],{"emptyLinePlaceholder":711},[542,1078,1079,1081,1083,1085],{"class":544,"line":569},[542,1080,549],{"class":548},[542,1082,552],{"class":548},[542,1084,556],{"class":555},[542,1086,560],{"class":559},[542,1088,1089],{"class":544,"line":575},[542,1090,1091],{"class":559},"  experimental: {\n",[542,1093,1094,1097],{"class":544,"line":585},[542,1095,1096],{"class":559},"    tasks: ",[542,1098,1099],{"class":627},"true\n",[542,1101,1102],{"class":544,"line":591},[542,1103,840],{"class":559},[542,1105,1106],{"class":544,"line":597},[542,1107,1108],{"class":559},"  scheduledTasks: {\n",[542,1110,1111],{"class":544,"line":752},[542,1112,1113],{"class":905},"    // Run `cms:update` every hour\n",[542,1115,1116,1119,1122,1125],{"class":544,"line":763},[542,1117,1118],{"class":581},"    '0 * * * *'",[542,1120,1121],{"class":559},": [",[542,1123,1124],{"class":581},"'cms:update'",[542,1126,792],{"class":559},[542,1128,1129],{"class":544,"line":769},[542,1130,1131],{"class":905},"    // Run `db:cleanup` every day at midnight\n",[542,1133,1134,1137,1139,1142],{"class":544,"line":777},[542,1135,1136],{"class":581},"    '0 0 * * *'",[542,1138,1121],{"class":559},[542,1140,1141],{"class":581},"'db:cleanup'",[542,1143,1144],{"class":559},"]\n",[542,1146,1147],{"class":544,"line":795},[542,1148,594],{"class":559},[542,1150,1151],{"class":544,"line":800},[542,1152,600],{"class":559},[478,1154,1156],{"id":1155},"secure-cron-job-endpoints","Secure cron job endpoints",[412,1158],{"title":1159,"to":1160},"Securing cron jobs","https://vercel.com/docs/cron-jobs/manage-cron-jobs#securing-cron-jobs",[400,1162,1163,1164,1167,1168,1170,1171,1174],{},"To prevent unauthorized access to the cron handler, set a ",[408,1165,1166],{},"CRON_SECRET"," environment variable in your Vercel project settings. When ",[408,1169,1166],{}," is set, Nitro validates the ",[408,1172,1173],{},"Authorization"," header on every cron invocation.",[429,1176,1178],{"id":1177},"custom-build-output-configuration","Custom build output configuration",[400,1180,1181,1182,1187,1188,527,1191,1193],{},"You can provide additional ",[423,1183,1186],{"href":1184,"rel":1185},"https://vercel.com/docs/build-output-api/v3",[446],"build output configuration"," using ",[408,1189,1190],{},"vercel.config",[408,1192,530],{},". It will be merged with built-in auto-generated config.",[429,1195,1197],{"id":1196},"on-demand-incremental-static-regeneration-isr","On-Demand incremental static regeneration (ISR)",[400,1199,1200],{},"On-demand revalidation allows you to purge the cache for an ISR route whenever you want, foregoing the time interval required with background revalidation.",[400,1202,1203],{},"To revalidate a page on demand:",[1205,1206,1208,1226,1289],"steps",{"level":1207},"4",[1209,1210,1211,1212],"h4",{},"Create an Environment Variable which will store a revalidation secret",[437,1213,1214],{},[440,1215,1216,1217,959,1220,1225],{},"You can use the command ",[408,1218,1219],{},"openssl rand -base64 32",[423,1221,1224],{"href":1222,"rel":1223},"https://generate-secret.vercel.app/32",[446],"Generate a Secret"," to generate a random value.",[1209,1227,1228,1229],{},"Update your configuration:",[533,1230,1232],{"className":535,"code":1231,"filename":537,"language":538,"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",[408,1233,1234,1246,1250,1260,1264,1269,1277,1281,1285],{"__ignoreMap":5},[542,1235,1236,1238,1240,1242,1244],{"class":544,"line":545},[542,1237,694],{"class":548},[542,1239,697],{"class":559},[542,1241,700],{"class":548},[542,1243,703],{"class":581},[542,1245,706],{"class":559},[542,1247,1248],{"class":544,"line":563},[542,1249,712],{"emptyLinePlaceholder":711},[542,1251,1252,1254,1256,1258],{"class":544,"line":569},[542,1253,549],{"class":548},[542,1255,552],{"class":548},[542,1257,556],{"class":555},[542,1259,560],{"class":559},[542,1261,1262],{"class":544,"line":575},[542,1263,566],{"class":559},[542,1265,1266],{"class":544,"line":585},[542,1267,1268],{"class":559},"    config: {\n",[542,1270,1271,1274],{"class":544,"line":591},[542,1272,1273],{"class":559},"      bypassToken: process.env.",[542,1275,1276],{"class":627},"VERCEL_BYPASS_TOKEN\n",[542,1278,1279],{"class":544,"line":597},[542,1280,588],{"class":559},[542,1282,1283],{"class":544,"line":752},[542,1284,594],{"class":559},[542,1286,1287],{"class":544,"line":763},[542,1288,600],{"class":559},[1209,1290,1291,1292,1295],{},"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: ",[408,1293,1294],{},"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.",[478,1297,1299],{"id":1298},"fine-grained-isr-config-via-route-rules","Fine-grained ISR config via route rules",[400,1301,1302],{},"By default, query params affect cache keys but are not passed to the route handler unless specified.",[400,1304,1305,1306,1309],{},"You can pass an options object to ",[408,1307,1308],{},"isr"," route rule to configure caching behavior.",[437,1311,1312,1326,1332,1361,1378],{},[440,1313,1314,1317,1318,1321,1322,1325],{},[408,1315,1316],{},"expiration",": Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to ",[408,1319,1320],{},"false"," (or ",[408,1323,1324],{},"isr: true"," route rule) means it will never expire.",[440,1327,1328,1331],{},[408,1329,1330],{},"group",": Group number of the asset. Prerender assets with the same group number will all be re-validated at the same time.",[440,1333,1334,1337,1338],{},[408,1335,1336],{},"allowQuery",": List of query string parameter names that will be cached independently.\n",[437,1339,1340,1343,1350],{},[440,1341,1342],{},"If an empty array, query values are not considered for caching.",[440,1344,1345,1346,1349],{},"If ",[408,1347,1348],{},"undefined"," each unique query value is cached independently.",[440,1351,1352,1353,1356,1357,1360],{},"For wildcard ",[408,1354,1355],{},"/**"," route rules, ",[408,1358,1359],{},"url"," is always added",[440,1362,1363,1366,1367,1370,1371,1374,1375,1377],{},[408,1364,1365],{},"passQuery",": When ",[408,1368,1369],{},"true",", the query string will be present on the ",[408,1372,1373],{},"request"," argument passed to the invoked function. The ",[408,1376,1336],{}," filter still applies.",[440,1379,1380,1366,1383,1385,1386],{},[408,1381,1382],{},"exposeErrBody",[408,1384,1369],{},", expose the response body regardless of status code including error status codes. (default ",[408,1387,1320],{},[533,1389,1391],{"className":535,"code":1390,"language":538,"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",[408,1392,1393,1403,1407,1414,1419,1429,1438,1445,1449,1453,1457],{"__ignoreMap":5},[542,1394,1395,1397,1399,1401],{"class":544,"line":545},[542,1396,549],{"class":548},[542,1398,552],{"class":548},[542,1400,556],{"class":555},[542,1402,560],{"class":559},[542,1404,1405],{"class":544,"line":563},[542,1406,900],{"class":559},[542,1408,1409,1412],{"class":544,"line":569},[542,1410,1411],{"class":581},"    \"/products/**\"",[542,1413,739],{"class":559},[542,1415,1416],{"class":544,"line":575},[542,1417,1418],{"class":559},"      isr: {\n",[542,1420,1421,1424,1427],{"class":544,"line":585},[542,1422,1423],{"class":559},"        allowQuery: [",[542,1425,1426],{"class":581},"\"q\"",[542,1428,792],{"class":559},[542,1430,1431,1434,1436],{"class":544,"line":591},[542,1432,1433],{"class":559},"        passQuery: ",[542,1435,1369],{"class":627},[542,1437,637],{"class":559},[542,1439,1440,1443],{"class":544,"line":597},[542,1441,1442],{"class":559},"        exposeErrBody: ",[542,1444,1099],{"class":627},[542,1446,1447],{"class":544,"line":752},[542,1448,766],{"class":559},[542,1450,1451],{"class":544,"line":763},[542,1452,834],{"class":559},[542,1454,1455],{"class":544,"line":769},[542,1456,840],{"class":559},[542,1458,1459],{"class":544,"line":777},[542,1460,846],{"class":559},[1462,1463,1464],"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":563,"depth":563,"links":1466},[1467,1470,1471,1472,1473,1477,1480,1481],{"id":431,"depth":563,"text":432,"children":1468},[1469],{"id":480,"depth":569,"text":481},{"id":492,"depth":563,"text":493},{"id":511,"depth":563,"text":512},{"id":655,"depth":563,"text":656},{"id":866,"depth":563,"text":867,"children":1474},[1475,1476],{"id":938,"depth":569,"text":939},{"id":972,"depth":569,"text":973},{"id":1033,"depth":563,"text":1034,"children":1478},[1479],{"id":1155,"depth":569,"text":1156},{"id":1177,"depth":563,"text":1178},{"id":1196,"depth":563,"text":1197,"children":1482},[1483],{"id":1298,"depth":569,"text":1299},"Deploy Nitro apps to Vercel.","md",{},{},{"title":202,"description":1484},"4mjPKuTVOK4U6lI_Vq0OAKqa6RY-eU1SHCsNivex2WM",[1491,1493],{"title":198,"path":199,"stem":200,"description":1492,"children":-1},"Deploy Nitro apps to StormKit.",{"title":206,"path":207,"stem":208,"description":1494,"children":-1},"Deploy Nitro apps to Zeabur.",1775834862327]