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