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