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