[{"data":1,"prerenderedAt":520},["ShallowReactive",2],{"navigation":3,"-deploy-providers-aws":225,"-deploy-providers-aws-surround":515},[4,76,219],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Docs","/guide","1.guide/0.index",[9,11,16,21,26,31,36,41,46,51,56,61,66,71],{"title":5,"path":6,"stem":7,"icon":10},"ph:book-open-duotone",{"title":12,"path":13,"stem":14,"icon":15},"Server Utils","/guide/utils","1.guide/1.utils","ri:tools-line",{"title":17,"path":18,"stem":19,"icon":20},"Tasks","/guide/tasks","1.guide/10.tasks","codicon:run-all",{"title":22,"path":23,"stem":24,"icon":25},"Server Routes","/guide/routing","1.guide/2.routing","ri:direction-line",{"title":27,"path":28,"stem":29,"icon":30},"WebSocket","/guide/websocket","1.guide/3.websocket","cib:socket-io",{"title":32,"path":33,"stem":34,"icon":35},"KV Storage","/guide/storage","1.guide/4.storage","carbon:datastore",{"title":37,"path":38,"stem":39,"icon":40},"SQL Database","/guide/database","1.guide/5.database","ri:database-2-line",{"title":42,"path":43,"stem":44,"icon":45},"Cache","/guide/cache","1.guide/6.cache","ri:speed-line",{"title":47,"path":48,"stem":49,"icon":50},"Fetch","/guide/fetch","1.guide/7.fetch","ri:global-line",{"title":52,"path":53,"stem":54,"icon":55},"Assets","/guide/assets","1.guide/8.assets","ri:image-2-line",{"title":57,"path":58,"stem":59,"icon":60},"Plugins","/guide/plugins","1.guide/9.plugins","ri:plug-line",{"title":62,"path":63,"stem":64,"icon":65},"Configuration","/guide/configuration","1.guide/97.configuration","ri:settings-3-line",{"title":67,"path":68,"stem":69,"icon":70},"TypeScript","/guide/typescript","1.guide/98.typescript","tabler:brand-typescript",{"title":72,"path":73,"stem":74,"icon":75},"Nightly Channel","/guide/nightly","1.guide/99.nightly","ri:moon-fill",{"title":77,"path":78,"stem":79,"children":80,"icon":82},"Deploy","/deploy","2.deploy/0.index",[81,83,87,113,118],{"title":77,"path":78,"stem":79,"icon":82},"ri:upload-cloud-2-line",{"title":84,"path":85,"stem":86,"icon":50},"Edge Workers","/deploy/workers","2.deploy/1.workers",{"title":88,"path":89,"stem":90,"children":91,"page":112},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[92,97,102,107],{"title":93,"path":94,"stem":95,"icon":96},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":98,"path":99,"stem":100,"icon":101},"WinterJS","/deploy/runtimes/_winterjs","2.deploy/10.runtimes/_winterjs","game-icons:cold-heart",{"title":103,"path":104,"stem":105,"icon":106},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":108,"path":109,"stem":110,"icon":111},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":114,"path":115,"stem":116,"icon":117},"Custom Preset","/deploy/custom-presets","2.deploy/2.custom-presets","ri:file-code-line",{"title":119,"path":120,"stem":121,"children":122,"page":112},"Providers","/deploy/providers","2.deploy/20.providers",[123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215],{"title":124,"path":125,"stem":126},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":128,"path":129,"stem":130},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":132,"path":133,"stem":134},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":136,"path":137,"stem":138},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":140,"path":141,"stem":142},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":144,"path":145,"stem":146},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":148,"path":149,"stem":150},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":152,"path":153,"stem":154},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":156,"path":157,"stem":158},"Edgio","/deploy/providers/edgio","2.deploy/20.providers/edgio",{"title":160,"path":161,"stem":162},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":164,"path":165,"stem":166},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":168,"path":169,"stem":170},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":172,"path":173,"stem":174},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":176,"path":177,"stem":178},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":180,"path":181,"stem":182},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":184,"path":185,"stem":186},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":188,"path":189,"stem":190},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":192,"path":193,"stem":194},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":196,"path":197,"stem":198},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":200,"path":201,"stem":202},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":204,"path":205,"stem":206},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":208,"path":209,"stem":210},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":212,"path":213,"stem":214},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":216,"path":217,"stem":218},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":220,"path":221,"stem":222,"children":223,"icon":65},"Config","/config","3.config/0.index",[224],{"title":220,"path":221,"stem":222,"icon":65},{"id":226,"title":128,"body":227,"description":509,"extension":510,"meta":511,"navigation":512,"path":129,"seo":513,"stem":130,"__hash__":514},"content/2.deploy/20.providers/aws.md",{"type":228,"value":229,"toc":505},"minimark",[230,242,246,265,268,354,359,375,451,455,459,466,501],[231,232,233,237,238],"p",{},[234,235,236],"strong",{},"Preset:"," ",[239,240,241],"code",{},"aws_lambda",[243,244],"read-more",{"title":128,"to":245},"https://aws.amazon.com/lambda/",[231,247,248,249,254,255,258,259,264],{},"Nitro provides a built-in preset to generate output format compatible with ",[250,251,128],"a",{"href":245,"rel":252},[253],"nofollow",".\nThe output entrypoint in ",[239,256,257],{},".output/server/index.mjs"," is compatible with ",[250,260,263],{"href":261,"rel":262},"https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html",[253],"AWS Lambda format",".",[231,266,267],{},"It can be used programmatically or as part of a deployment.",[269,270,275],"pre",{"className":271,"code":272,"language":273,"meta":274,"style":274},"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","",[239,276,277,297,304,311],{"__ignoreMap":274},[278,279,282,286,290,293],"span",{"class":280,"line":281},"line",1,[278,283,285],{"class":284},"so5gQ","import",[278,287,289],{"class":288},"slsVL"," { handler } ",[278,291,292],{"class":284},"from",[278,294,296],{"class":295},"sfrk1"," './.output/server'\n",[278,298,300],{"class":280,"line":299},2,[278,301,303],{"emptyLinePlaceholder":302},true,"\n",[278,305,307],{"class":280,"line":306},3,[278,308,310],{"class":309},"sCsY4","// Use programmatically\n",[278,312,314,317,320,324,327,330,332,335,338,341,345,348,351],{"class":280,"line":313},4,[278,315,316],{"class":284},"const",[278,318,319],{"class":288}," { ",[278,321,323],{"class":322},"suiK_","statusCode",[278,325,326],{"class":288},", ",[278,328,329],{"class":322},"headers",[278,331,326],{"class":288},[278,333,334],{"class":322},"body",[278,336,337],{"class":288}," } ",[278,339,340],{"class":284},"=",[278,342,344],{"class":343},"shcOC"," handler",[278,346,347],{"class":288},"({ rawPath: ",[278,349,350],{"class":295},"'/'",[278,352,353],{"class":288}," })\n",[355,356,358],"h2",{"id":357},"inlining-chunks","Inlining chunks",[231,360,361,362,367,368,374],{},"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 ",[250,363,366],{"href":364,"rel":365},"https://github.com/nitrojs/nitro/pull/650",[253],"nitrojs/nitro#650","). You can enabling chunk inlining behavior using ",[250,369,371],{"href":370},"/config#inlinedynamicimports",[239,372,373],{},"inlineDynamicImports"," config.",[376,377,378,411],"code-group",{},[269,379,382],{"className":271,"code":380,"filename":381,"language":273,"meta":274,"style":274},"export default defineNitroConfig({\n  inlineDynamicImports: true\n});\n","nitro.config.ts",[239,383,384,398,406],{"__ignoreMap":274},[278,385,386,389,392,395],{"class":280,"line":281},[278,387,388],{"class":284},"export",[278,390,391],{"class":284}," default",[278,393,394],{"class":343}," defineNitroConfig",[278,396,397],{"class":288},"({\n",[278,399,400,403],{"class":280,"line":299},[278,401,402],{"class":288},"  inlineDynamicImports: ",[278,404,405],{"class":322},"true\n",[278,407,408],{"class":280,"line":306},[278,409,410],{"class":288},"});\n",[269,412,415],{"className":271,"code":413,"filename":414,"language":273,"meta":274,"style":274},"export default defineNuxtConfig({\n  nitro: {\n    inlineDynamicImports: true\n  }\n})\n","nuxt.config.ts",[239,416,417,428,433,440,445],{"__ignoreMap":274},[278,418,419,421,423,426],{"class":280,"line":281},[278,420,388],{"class":284},[278,422,391],{"class":284},[278,424,425],{"class":343}," defineNuxtConfig",[278,427,397],{"class":288},[278,429,430],{"class":280,"line":299},[278,431,432],{"class":288},"  nitro: {\n",[278,434,435,438],{"class":280,"line":306},[278,436,437],{"class":288},"    inlineDynamicImports: ",[278,439,405],{"class":322},[278,441,442],{"class":280,"line":313},[278,443,444],{"class":288},"  }\n",[278,446,448],{"class":280,"line":447},5,[278,449,450],{"class":288},"})\n",[355,452,454],{"id":453},"response-streaming","Response streaming",[243,456],{"title":457,"to":458},"Introducing AWS Lambda response streaming","https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/",[231,460,461,462,465],{},"In order to enable response streaming, enable ",[239,463,464],{},"awsLambda.streaming"," flag:",[269,467,469],{"className":271,"code":468,"filename":381,"language":273,"meta":274,"style":274},"export default defineNitroConfig({\n  awsLambda: {\n    streaming: true\n  }\n});\n",[239,470,471,481,486,493,497],{"__ignoreMap":274},[278,472,473,475,477,479],{"class":280,"line":281},[278,474,388],{"class":284},[278,476,391],{"class":284},[278,478,394],{"class":343},[278,480,397],{"class":288},[278,482,483],{"class":280,"line":299},[278,484,485],{"class":288},"  awsLambda: {\n",[278,487,488,491],{"class":280,"line":306},[278,489,490],{"class":288},"    streaming: ",[278,492,405],{"class":322},[278,494,495],{"class":280,"line":313},[278,496,444],{"class":288},[278,498,499],{"class":280,"line":447},[278,500,410],{"class":288},[502,503,504],"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":274,"searchDepth":299,"depth":299,"links":506},[507,508],{"id":357,"depth":299,"text":358},{"id":453,"depth":299,"text":454},"Deploy Nitro apps to AWS Lambda.","md",{},{},{"title":128,"description":509},"pNVVACmjnJvPkcGGsYky4Ityl9yqc-1V8mrGrW_HNGc",[516,518],{"title":124,"path":125,"stem":126,"description":517,"children":-1},"Deploy Nitro apps to alwaysdata.",{"title":132,"path":133,"stem":134,"description":519,"children":-1},"Deploy Nitro apps to AWS Amplify Hosting.",1775119639401]