[{"data":1,"prerenderedAt":789},["ShallowReactive",2],{"navigation":3,"-deploy-providers-vercel":217,"-deploy-providers-vercel-surround":784},[4,83,208,214],{"title":5,"path":6,"stem":7,"children":8,"icon":82},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-compass",{"title":13,"path":14,"stem":15,"icon":16},"Quick Start","/docs/quick-start","1.docs/2.quick-start","i-lucide-zap",{"title":18,"path":19,"stem":20,"icon":21},"Renderer","/docs/renderer","1.docs/4.renderer","ri:layout-masonry-line",{"title":23,"path":24,"stem":25,"icon":26},"Routing","/docs/routing","1.docs/5.routing","ri:direction-line",{"title":28,"path":29,"stem":30,"icon":31},"Assets","/docs/assets","1.docs/50.assets","ri:image-2-line",{"title":33,"path":34,"stem":35,"icon":36},"Configuration","/docs/configuration","1.docs/50.configuration","ri:settings-3-line",{"title":38,"path":39,"stem":40,"icon":41},"Database","/docs/database","1.docs/50.database","ri:database-2-line",{"title":43,"path":44,"stem":45,"icon":46},"Lifecycle","/docs/lifecycle","1.docs/50.lifecycle","i-lucide-layers",{"title":48,"path":49,"stem":50,"icon":51},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":53,"path":54,"stem":55,"icon":56},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":58,"path":59,"stem":60,"icon":61},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":63,"path":64,"stem":65,"icon":66},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":68,"path":69,"stem":70,"icon":71},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":73,"path":74,"stem":75,"icon":76},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":78,"path":79,"stem":80,"icon":81},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":84,"path":85,"stem":86,"children":87,"icon":89},"Deploy","/deploy","2.deploy/0.index",[88,90,111],{"title":84,"path":85,"stem":86,"icon":89},"ri:upload-cloud-2-line",{"title":91,"path":92,"stem":93,"children":94,"page":110},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[95,100,105],{"title":96,"path":97,"stem":98,"icon":99},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":101,"path":102,"stem":103,"icon":104},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":106,"path":107,"stem":108,"icon":109},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":112,"path":113,"stem":114,"children":115,"page":110},"Providers","/deploy/providers","2.deploy/20.providers",[116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204],{"title":117,"path":118,"stem":119},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":121,"path":122,"stem":123},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":125,"path":126,"stem":127},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":129,"path":130,"stem":131},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":133,"path":134,"stem":135},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":137,"path":138,"stem":139},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":141,"path":142,"stem":143},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":145,"path":146,"stem":147},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":149,"path":150,"stem":151},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":153,"path":154,"stem":155},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":157,"path":158,"stem":159},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":161,"path":162,"stem":163},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":165,"path":166,"stem":167},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":169,"path":170,"stem":171},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":173,"path":174,"stem":175},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":177,"path":178,"stem":179},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":181,"path":182,"stem":183},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":185,"path":186,"stem":187},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":189,"path":190,"stem":191},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":193,"path":194,"stem":195},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":197,"path":198,"stem":199},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":201,"path":202,"stem":203},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":205,"path":206,"stem":207},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":209,"path":210,"stem":211,"children":212,"icon":36},"Config","/config","3.config/0.index",[213],{"title":209,"path":210,"stem":211,"icon":36},{"title":5,"path":215,"stem":216},"/","index",{"id":218,"title":197,"body":219,"description":778,"extension":779,"meta":780,"navigation":781,"path":198,"seo":782,"stem":199,"__hash__":783},"content/2.deploy/20.providers/vercel.md",{"type":220,"value":221,"toc":767},"minimark",[222,234,239,251,256,259,292,300,305,313,317,324,332,336,339,355,424,434,476,480,495,499,502,505,607,611,614,621,689,763],[223,224,225,229,230],"p",{},[226,227,228],"strong",{},"Preset:"," ",[231,232,233],"code",{},"vercel",[235,236],"read-more",{"title":237,"to":238},"Vercel Framework Support","https://vercel.com/docs/frameworks",[240,241,242],"note",{},[223,243,244,245,250],{},"Integration with this provider is possible with ",[246,247,249],"a",{"href":248},"/deploy/#zero-config-providers","zero configuration",".",[252,253,255],"h2",{"id":254},"getting-started","Getting started",[223,257,258],{},"Deploying to Vercel comes with the following features:",[260,261,262,271,278,285],"ul",{},[263,264,265],"li",{},[246,266,270],{"href":267,"rel":268},"https://vercel.com/docs/deployments/environments",[269],"nofollow","Preview deployments",[263,272,273],{},[246,274,277],{"href":275,"rel":276},"https://vercel.com/docs/fluid-compute",[269],"Fluid compute",[263,279,280],{},[246,281,284],{"href":282,"rel":283},"https://vercel.com/docs/observability",[269],"Observability",[263,286,287],{},[246,288,291],{"href":289,"rel":290},"https://vercel.com/docs/vercel-firewall",[269],"Vercel Firewall",[223,293,294,295,250],{},"And much more. Learn more in ",[246,296,299],{"href":297,"rel":298},"https://vercel.com/docs",[269],"the Vercel documentation",[301,302,304],"h3",{"id":303},"deploy-with-git","Deploy with Git",[223,306,307,308,250],{},"Vercel supports Nitro with zero-configuration. ",[246,309,312],{"href":310,"rel":311},"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fnitro",[269],"Deploy Nitro to Vercel now",[252,314,316],{"id":315},"api-routes","API routes",[223,318,319,320,323],{},"Nitro ",[231,321,322],{},"/api"," directory isn't compatible with Vercel. Instead, you should use:",[260,325,326],{},[263,327,328,331],{},[231,329,330],{},"routes/api/"," for standalone usage",[252,333,335],{"id":334},"bun-runtime","Bun runtime",[235,337],{"title":197,"to":338},"https://vercel.com/docs/functions/runtimes/bun",[223,340,341,342,346,347,350,351,354],{},"You can use ",[246,343,101],{"href":344,"rel":345},"https://bun.com",[269]," instead of Node.js by specifying the runtime using the ",[231,348,349],{},"vercel.functions"," key inside ",[231,352,353],{},"nitro.config",":",[356,357,362],"pre",{"className":358,"code":359,"filename":360,"language":361,"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",[231,363,364,384,390,396,406,412,418],{"__ignoreMap":5},[365,366,369,373,376,380],"span",{"class":367,"line":368},"line",1,[365,370,372],{"class":371},"so5gQ","export",[365,374,375],{"class":371}," default",[365,377,379],{"class":378},"shcOC"," defineNitroConfig",[365,381,383],{"class":382},"slsVL","({\n",[365,385,387],{"class":367,"line":386},2,[365,388,389],{"class":382},"  vercel: {\n",[365,391,393],{"class":367,"line":392},3,[365,394,395],{"class":382},"    functions: {\n",[365,397,399,402],{"class":367,"line":398},4,[365,400,401],{"class":382},"      runtime: ",[365,403,405],{"class":404},"sfrk1","\"bun1.x\"\n",[365,407,409],{"class":367,"line":408},5,[365,410,411],{"class":382},"    }\n",[365,413,415],{"class":367,"line":414},6,[365,416,417],{"class":382},"  }\n",[365,419,421],{"class":367,"line":420},7,[365,422,423],{"class":382},"})\n",[223,425,426,427,430,431,354],{},"Alternatively, Nitro also detects Bun automatically if you specify a ",[231,428,429],{},"bunVersion"," property in your ",[231,432,433],{},"vercel.json",[356,435,439],{"className":436,"code":437,"filename":433,"language":438,"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",[231,440,441,446,461,471],{"__ignoreMap":5},[365,442,443],{"class":367,"line":368},[365,444,445],{"class":382},"{\n",[365,447,448,452,455,458],{"class":367,"line":386},[365,449,451],{"class":450},"suiK_","  \"$schema\"",[365,453,454],{"class":382},": ",[365,456,457],{"class":404},"\"https://openapi.vercel.sh/vercel.json\"",[365,459,460],{"class":382},",\n",[365,462,463,466,468],{"class":367,"line":392},[365,464,465],{"class":450},"  \"bunVersion\"",[365,467,454],{"class":382},[365,469,470],{"class":404},"\"1.x\"\n",[365,472,473],{"class":367,"line":398},[365,474,475],{"class":382},"}\n",[252,477,479],{"id":478},"custom-build-output-configuration","Custom build output configuration",[223,481,482,483,488,489,350,492,494],{},"You can provide additional ",[246,484,487],{"href":485,"rel":486},"https://vercel.com/docs/build-output-api/v3",[269],"build output configuration"," using ",[231,490,491],{},"vercel.config",[231,493,353],{},". It will be merged with built-in auto-generated config.",[252,496,498],{"id":497},"on-demand-incremental-static-regeneration-isr","On-Demand incremental static regeneration (ISR)",[223,500,501],{},"On-demand revalidation allows you to purge the cache for an ISR route whenever you want, foregoing the time interval required with background revalidation.",[223,503,504],{},"To revalidate a page on demand:",[506,507,509,528,600],"steps",{"level":508},"4",[510,511,512,513],"h4",{},"Create an Environment Variable which will store a revalidation secret",[260,514,515],{},[263,516,517,518,521,522,527],{},"You can use the command ",[231,519,520],{},"openssl rand -base64 32"," or ",[246,523,526],{"href":524,"rel":525},"https://generate-secret.vercel.app/32",[269],"Generate a Secret"," to generate a random value.",[510,529,530,531],{},"Update your configuration:",[356,532,534],{"className":358,"code":533,"filename":360,"language":361,"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",[231,535,536,553,559,569,573,578,586,590,595],{"__ignoreMap":5},[365,537,538,541,544,547,550],{"class":367,"line":368},[365,539,540],{"class":371},"import",[365,542,543],{"class":382}," { defineNitroConfig } ",[365,545,546],{"class":371},"from",[365,548,549],{"class":404}," \"nitro/config\"",[365,551,552],{"class":382},";\n",[365,554,555],{"class":367,"line":386},[365,556,558],{"emptyLinePlaceholder":557},true,"\n",[365,560,561,563,565,567],{"class":367,"line":392},[365,562,372],{"class":371},[365,564,375],{"class":371},[365,566,379],{"class":378},[365,568,383],{"class":382},[365,570,571],{"class":367,"line":398},[365,572,389],{"class":382},[365,574,575],{"class":367,"line":408},[365,576,577],{"class":382},"    config: {\n",[365,579,580,583],{"class":367,"line":414},[365,581,582],{"class":382},"      bypassToken: process.env.",[365,584,585],{"class":450},"VERCEL_BYPASS_TOKEN\n",[365,587,588],{"class":367,"line":420},[365,589,411],{"class":382},[365,591,593],{"class":367,"line":592},8,[365,594,417],{"class":382},[365,596,598],{"class":367,"line":597},9,[365,599,423],{"class":382},[510,601,602,603,606],{},"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: ",[231,604,605],{},"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.",[301,608,610],{"id":609},"fine-grained-isr-config-via-route-rules","Fine-grained ISR config via route rules",[223,612,613],{},"By default, query paramas are ignored by cache.",[223,615,616,617,620],{},"You can pass an options object to ",[231,618,619],{},"isr"," route rule to configure caching behavior.",[260,622,623,637,643,672],{},[263,624,625,628,629,632,633,636],{},[231,626,627],{},"expiration",": Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to ",[231,630,631],{},"false"," (or ",[231,634,635],{},"isr: true"," route rule) means it will never expire.",[263,638,639,642],{},[231,640,641],{},"group",": Group number of the asset. Prerender assets with the same group number will all be re-validated at the same time.",[263,644,645,648,649],{},[231,646,647],{},"allowQuery",": List of query string parameter names that will be cached independently.",[260,650,651,654,661],{},[263,652,653],{},"If an empty array, query values are not considered for caching.",[263,655,656,657,660],{},"If ",[231,658,659],{},"undefined"," each unique query value is cached independently.",[263,662,663,664,667,668,671],{},"For wildcard ",[231,665,666],{},"/**"," route rules, ",[231,669,670],{},"url"," is always added",[263,673,674,677,678,681,682,685,686,688],{},[231,675,676],{},"passQuery",": When ",[231,679,680],{},"true",", the query string will be present on the ",[231,683,684],{},"request"," argument passed to the invoked function. The ",[231,687,647],{}," filter still applies.",[356,690,692],{"className":358,"code":691,"language":361,"meta":5,"style":5},"export default defineNitroConfig({\n  routeRules: {\n    \"/products/**\": {\n      isr: {\n        allowQuery: [\"q\"],\n        passQuery: true,\n      },\n    },\n  },\n});\n",[231,693,694,704,709,717,722,733,742,747,752,757],{"__ignoreMap":5},[365,695,696,698,700,702],{"class":367,"line":368},[365,697,372],{"class":371},[365,699,375],{"class":371},[365,701,379],{"class":378},[365,703,383],{"class":382},[365,705,706],{"class":367,"line":386},[365,707,708],{"class":382},"  routeRules: {\n",[365,710,711,714],{"class":367,"line":392},[365,712,713],{"class":404},"    \"/products/**\"",[365,715,716],{"class":382},": {\n",[365,718,719],{"class":367,"line":398},[365,720,721],{"class":382},"      isr: {\n",[365,723,724,727,730],{"class":367,"line":408},[365,725,726],{"class":382},"        allowQuery: [",[365,728,729],{"class":404},"\"q\"",[365,731,732],{"class":382},"],\n",[365,734,735,738,740],{"class":367,"line":414},[365,736,737],{"class":382},"        passQuery: ",[365,739,680],{"class":450},[365,741,460],{"class":382},[365,743,744],{"class":367,"line":420},[365,745,746],{"class":382},"      },\n",[365,748,749],{"class":367,"line":592},[365,750,751],{"class":382},"    },\n",[365,753,754],{"class":367,"line":597},[365,755,756],{"class":382},"  },\n",[365,758,760],{"class":367,"line":759},10,[365,761,762],{"class":382},"});\n",[764,765,766],"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}",{"title":5,"searchDepth":386,"depth":386,"links":768},[769,772,773,774,775],{"id":254,"depth":386,"text":255,"children":770},[771],{"id":303,"depth":392,"text":304},{"id":315,"depth":386,"text":316},{"id":334,"depth":386,"text":335},{"id":478,"depth":386,"text":479},{"id":497,"depth":386,"text":498,"children":776},[777],{"id":609,"depth":392,"text":610},"Deploy Nitro apps to Vercel.","md",{},{},{"title":197,"description":778},"5OvAckZxHc_1zm0kikEvciBfw0raao7W-TtmLSgwyBE",[785,787],{"title":193,"path":194,"stem":195,"description":786,"children":-1},"Deploy Nitro apps to StormKit.",{"title":201,"path":202,"stem":203,"description":788,"children":-1},"Deploy Nitro apps to Zeabur.",1764004918676]