[{"data":1,"prerenderedAt":514},["ShallowReactive",2],{"navigation":3,"-deploy-providers-aws":224,"-deploy-providers-aws-surround":509},[4,83,208,214,221],{"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":215,"path":216,"stem":217,"children":218,"icon":220},"Examples","/examples","4.examples/0.index",[219],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-folder-code",{"title":5,"path":222,"stem":223},"/","index",{"id":225,"title":121,"body":226,"description":503,"extension":504,"meta":505,"navigation":506,"path":122,"seo":507,"stem":123,"__hash__":508},"content/2.deploy/20.providers/aws.md",{"type":227,"value":228,"toc":499},"minimark",[229,241,245,264,267,352,357,373,426,430,434,441,495],[230,231,232,236,237],"p",{},[233,234,235],"strong",{},"Preset:"," ",[238,239,240],"code",{},"aws_lambda",[242,243],"read-more",{"title":121,"to":244},"https://aws.amazon.com/lambda/",[230,246,247,248,253,254,257,258,263],{},"Nitro provides a built-in preset to generate output format compatible with ",[249,250,121],"a",{"href":244,"rel":251},[252],"nofollow",".\nThe output entrypoint in ",[238,255,256],{},".output/server/index.mjs"," is compatible with ",[249,259,262],{"href":260,"rel":261},"https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html",[252],"AWS Lambda format",".",[230,265,266],{},"It can be used programmatically or as part of a deployment.",[268,269,273],"pre",{"className":270,"code":271,"language":272,"meta":5,"style":5},"language-ts shiki shiki-themes github-light github-dark github-dark","import { handler } from './.output/server'\n\n// Use programmatically\nconst { statusCode, headers, body } = handler({ rawPath: '/' })\n","ts",[238,274,275,295,302,309],{"__ignoreMap":5},[276,277,280,284,288,291],"span",{"class":278,"line":279},"line",1,[276,281,283],{"class":282},"so5gQ","import",[276,285,287],{"class":286},"slsVL"," { handler } ",[276,289,290],{"class":282},"from",[276,292,294],{"class":293},"sfrk1"," './.output/server'\n",[276,296,298],{"class":278,"line":297},2,[276,299,301],{"emptyLinePlaceholder":300},true,"\n",[276,303,305],{"class":278,"line":304},3,[276,306,308],{"class":307},"sCsY4","// Use programmatically\n",[276,310,312,315,318,322,325,328,330,333,336,339,343,346,349],{"class":278,"line":311},4,[276,313,314],{"class":282},"const",[276,316,317],{"class":286}," { ",[276,319,321],{"class":320},"suiK_","statusCode",[276,323,324],{"class":286},", ",[276,326,327],{"class":320},"headers",[276,329,324],{"class":286},[276,331,332],{"class":320},"body",[276,334,335],{"class":286}," } ",[276,337,338],{"class":282},"=",[276,340,342],{"class":341},"shcOC"," handler",[276,344,345],{"class":286},"({ rawPath: ",[276,347,348],{"class":293},"'/'",[276,350,351],{"class":286}," })\n",[353,354,356],"h2",{"id":355},"inlining-chunks","Inlining chunks",[230,358,359,360,365,366,372],{},"Nitro output, by default uses dynamic chunks for lazy loading code only when needed. However this sometimes can not be ideal for performance. (See discussions in ",[249,361,364],{"href":362,"rel":363},"https://github.com/nitrojs/nitro/pull/650",[252],"nitrojs/nitro#650","). You can enabling chunk inlining behavior using ",[249,367,369],{"href":368},"/config#inlinedynamicimports",[238,370,371],{},"inlineDynamicImports"," config.",[268,374,377],{"className":270,"code":375,"filename":376,"language":272,"meta":5,"style":5},"import { defineNitroConfig } from \"nitro/config\";\n\nexport default defineNitroConfig({\n  inlineDynamicImports: true\n});\n","nitro.config.ts",[238,378,379,394,398,412,420],{"__ignoreMap":5},[276,380,381,383,386,388,391],{"class":278,"line":279},[276,382,283],{"class":282},[276,384,385],{"class":286}," { defineNitroConfig } ",[276,387,290],{"class":282},[276,389,390],{"class":293}," \"nitro/config\"",[276,392,393],{"class":286},";\n",[276,395,396],{"class":278,"line":297},[276,397,301],{"emptyLinePlaceholder":300},[276,399,400,403,406,409],{"class":278,"line":304},[276,401,402],{"class":282},"export",[276,404,405],{"class":282}," default",[276,407,408],{"class":341}," defineNitroConfig",[276,410,411],{"class":286},"({\n",[276,413,414,417],{"class":278,"line":311},[276,415,416],{"class":286},"  inlineDynamicImports: ",[276,418,419],{"class":320},"true\n",[276,421,423],{"class":278,"line":422},5,[276,424,425],{"class":286},"});\n",[353,427,429],{"id":428},"response-streaming","Response streaming",[242,431],{"title":432,"to":433},"Introducing AWS Lambda response streaming","https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/",[230,435,436,437,440],{},"In order to enable response streaming, enable ",[238,438,439],{},"awsLambda.streaming"," flag:",[268,442,444],{"className":270,"code":443,"filename":376,"language":272,"meta":5,"style":5},"import { defineNitroConfig } from \"nitro/config\";\n\nexport default defineNitroConfig({\n  awsLambda: {\n    streaming: true\n  }\n});\n",[238,445,446,458,462,472,477,484,490],{"__ignoreMap":5},[276,447,448,450,452,454,456],{"class":278,"line":279},[276,449,283],{"class":282},[276,451,385],{"class":286},[276,453,290],{"class":282},[276,455,390],{"class":293},[276,457,393],{"class":286},[276,459,460],{"class":278,"line":297},[276,461,301],{"emptyLinePlaceholder":300},[276,463,464,466,468,470],{"class":278,"line":304},[276,465,402],{"class":282},[276,467,405],{"class":282},[276,469,408],{"class":341},[276,471,411],{"class":286},[276,473,474],{"class":278,"line":311},[276,475,476],{"class":286},"  awsLambda: {\n",[276,478,479,482],{"class":278,"line":422},[276,480,481],{"class":286},"    streaming: ",[276,483,419],{"class":320},[276,485,487],{"class":278,"line":486},6,[276,488,489],{"class":286},"  }\n",[276,491,493],{"class":278,"line":492},7,[276,494,425],{"class":286},[496,497,498],"style",{},"html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}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 pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}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);}",{"title":5,"searchDepth":297,"depth":297,"links":500},[501,502],{"id":355,"depth":297,"text":356},{"id":428,"depth":297,"text":429},"Deploy Nitro apps to AWS Lambda.","md",{},{},{"title":121,"description":503},"dMSVYARS-NZfXrPk7068GFyzVRVwHrhZYLC1CE8ZnB8",[510,512],{"title":117,"path":118,"stem":119,"description":511,"children":-1},"Deploy Nitro apps to alwaysdata.",{"title":125,"path":126,"stem":127,"description":513,"children":-1},"Deploy Nitro apps to AWS Amplify Hosting.",1771523840480]