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