[{"data":1,"prerenderedAt":740},["ShallowReactive",2],{"navigation":3,"-deploy-providers-aws-amplify":225,"-deploy-providers-aws-amplify-surround":735},[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":132,"body":227,"description":729,"extension":730,"meta":731,"navigation":732,"path":133,"seo":733,"stem":134,"__hash__":734},"content/2.deploy/20.providers/aws-amplify.md",{"type":228,"value":229,"toc":723},"minimark",[230,242,247,252,264,293,297,304,444,451,457,719],[231,232,233,237,238],"p",{},[234,235,236],"strong",{},"Preset:"," ",[239,240,241],"code",{},"aws_amplify",[243,244],"read-more",{"title":245,"to":246},"AWS Amplify Hosting","https://aws.amazon.com/amplify",[248,249,251],"h2",{"id":250},"deploy-to-aws-amplify-hosting","Deploy to AWS Amplify Hosting",[253,254,255],"tip",{},[231,256,257,258,263],{},"Integration with this provider is possible with ",[259,260,262],"a",{"href":261},"/deploy/#zero-config-providers","zero configuration",".",[265,266,268,278,281,284,287,290],"steps",{"level":267},"4",[269,270,271,272],"h4",{},"Login to the ",[259,273,277],{"href":274,"rel":275},"https://console.aws.amazon.com/amplify/",[276],"nofollow","AWS Amplify Hosting Console",[269,279,280],{},"Click on \"Get Started\" > Amplify Hosting (Host your web app)",[269,282,283],{},"Select and authorize access to your Git repository provider and select the main branch",[269,285,286],{},"Choose a name for your app, make sure build settings are auto-detected and optionally set requirement environment variables under the advanced section",[269,288,289],{},"Optionally, select Enable SSR logging to enable server-side logging to your Amazon CloudWatch account",[269,291,292],{},"Confirm configuration and click on \"Save and Deploy\"",[248,294,296],{"id":295},"advanced-configuration","Advanced Configuration",[231,298,299,300,303],{},"You can configure advanced options of this preset using ",[239,301,302],{},"awsAmplify"," option.",[305,306,307,383],"code-group",{},[308,309,315],"pre",{"className":310,"code":311,"filename":312,"language":313,"meta":314,"style":314},"language-ts shiki shiki-themes github-light github-dark github-dark","export default defineNitroConfig({\n  awsAmplify: {\n      // catchAllStaticFallback: true,\n      // imageOptimization: { path: \"/_image\", cacheControl: \"public, max-age=3600, immutable\" },\n      // imageSettings: { ... },\n      // runtime: \"nodejs18.x\", // default: \"nodejs18.x\" | \"nodejs16.x\" | \"nodejs20.x\"\n  }\n})\n","nitro.config.ts","ts","",[239,316,317,337,343,350,356,362,371,377],{"__ignoreMap":314},[318,319,322,326,329,333],"span",{"class":320,"line":321},"line",1,[318,323,325],{"class":324},"so5gQ","export",[318,327,328],{"class":324}," default",[318,330,332],{"class":331},"shcOC"," defineNitroConfig",[318,334,336],{"class":335},"slsVL","({\n",[318,338,340],{"class":320,"line":339},2,[318,341,342],{"class":335},"  awsAmplify: {\n",[318,344,346],{"class":320,"line":345},3,[318,347,349],{"class":348},"sCsY4","      // catchAllStaticFallback: true,\n",[318,351,353],{"class":320,"line":352},4,[318,354,355],{"class":348},"      // imageOptimization: { path: \"/_image\", cacheControl: \"public, max-age=3600, immutable\" },\n",[318,357,359],{"class":320,"line":358},5,[318,360,361],{"class":348},"      // imageSettings: { ... },\n",[318,363,365,368],{"class":320,"line":364},6,[318,366,367],{"class":348},"      // runtime: \"nodejs18.x\",",[318,369,370],{"class":348}," // default: \"nodejs18.x\" | \"nodejs16.x\" | \"nodejs20.x\"\n",[318,372,374],{"class":320,"line":373},7,[318,375,376],{"class":335},"  }\n",[318,378,380],{"class":320,"line":379},8,[318,381,382],{"class":335},"})\n",[308,384,387],{"className":310,"code":385,"filename":386,"language":313,"meta":314,"style":314},"export default defineNuxtConfig({\n  nitro: {\n    awsAmplify: {\n      // catchAllStaticFallback: true,\n      // imageOptimization: { \"/_image\", cacheControl: \"public, max-age=3600, immutable\" },\n      // imageSettings: { ... },\n      // runtime: \"nodejs18.x\", // default: \"nodejs18.x\" | \"nodejs16.x\" | \"nodejs20.x\"\n    }\n  }\n})\n","nuxt.config.ts",[239,388,389,400,405,410,414,419,423,429,434,439],{"__ignoreMap":314},[318,390,391,393,395,398],{"class":320,"line":321},[318,392,325],{"class":324},[318,394,328],{"class":324},[318,396,397],{"class":331}," defineNuxtConfig",[318,399,336],{"class":335},[318,401,402],{"class":320,"line":339},[318,403,404],{"class":335},"  nitro: {\n",[318,406,407],{"class":320,"line":345},[318,408,409],{"class":335},"    awsAmplify: {\n",[318,411,412],{"class":320,"line":352},[318,413,349],{"class":348},[318,415,416],{"class":320,"line":358},[318,417,418],{"class":348},"      // imageOptimization: { \"/_image\", cacheControl: \"public, max-age=3600, immutable\" },\n",[318,420,421],{"class":320,"line":364},[318,422,361],{"class":348},[318,424,425,427],{"class":320,"line":373},[318,426,367],{"class":348},[318,428,370],{"class":348},[318,430,431],{"class":320,"line":379},[318,432,433],{"class":335},"    }\n",[318,435,437],{"class":320,"line":436},9,[318,438,376],{"class":335},[318,440,442],{"class":320,"line":441},10,[318,443,382],{"class":335},[445,446,448],"h3",{"id":447},"amplifyyml",[239,449,450],{},"amplify.yml",[231,452,453,454,456],{},"You might need a custom ",[239,455,450],{}," file for advanced configuration. Here are two template examples:",[305,458,459,580],{},[308,460,464],{"className":461,"code":462,"filename":450,"language":463,"meta":314,"style":314},"language-yml shiki shiki-themes github-light github-dark github-dark","version: 1\nfrontend:\n  phases:\n    preBuild:\n      commands:\n        - nvm use 18 && node --version\n        - corepack enable && npx --yes nypm install\n    build:\n      commands:\n        - pnpm build\n  artifacts:\n    baseDirectory: .amplify-hosting\n    files:\n      - \"**/*\"\n","yml",[239,465,466,479,487,494,501,508,517,524,531,537,544,552,563,571],{"__ignoreMap":314},[318,467,468,472,475],{"class":320,"line":321},[318,469,471],{"class":470},"sByVh","version",[318,473,474],{"class":335},": ",[318,476,478],{"class":477},"suiK_","1\n",[318,480,481,484],{"class":320,"line":339},[318,482,483],{"class":470},"frontend",[318,485,486],{"class":335},":\n",[318,488,489,492],{"class":320,"line":345},[318,490,491],{"class":470},"  phases",[318,493,486],{"class":335},[318,495,496,499],{"class":320,"line":352},[318,497,498],{"class":470},"    preBuild",[318,500,486],{"class":335},[318,502,503,506],{"class":320,"line":358},[318,504,505],{"class":470},"      commands",[318,507,486],{"class":335},[318,509,510,513],{"class":320,"line":364},[318,511,512],{"class":335},"        - ",[318,514,516],{"class":515},"sfrk1","nvm use 18 && node --version\n",[318,518,519,521],{"class":320,"line":373},[318,520,512],{"class":335},[318,522,523],{"class":515},"corepack enable && npx --yes nypm install\n",[318,525,526,529],{"class":320,"line":379},[318,527,528],{"class":470},"    build",[318,530,486],{"class":335},[318,532,533,535],{"class":320,"line":436},[318,534,505],{"class":470},[318,536,486],{"class":335},[318,538,539,541],{"class":320,"line":441},[318,540,512],{"class":335},[318,542,543],{"class":515},"pnpm build\n",[318,545,547,550],{"class":320,"line":546},11,[318,548,549],{"class":470},"  artifacts",[318,551,486],{"class":335},[318,553,555,558,560],{"class":320,"line":554},12,[318,556,557],{"class":470},"    baseDirectory",[318,559,474],{"class":335},[318,561,562],{"class":515},".amplify-hosting\n",[318,564,566,569],{"class":320,"line":565},13,[318,567,568],{"class":470},"    files",[318,570,486],{"class":335},[318,572,574,577],{"class":320,"line":573},14,[318,575,576],{"class":335},"      - ",[318,578,579],{"class":515},"\"**/*\"\n",[308,581,584],{"className":461,"code":582,"filename":583,"language":463,"meta":314,"style":314},"version: 1\napplications:\n  - frontend:\n      phases:\n        preBuild:\n          commands:\n          - nvm use 18 && node --version\n          - corepack enable && npx --yes nypm install\n        build:\n          commands:\n            - pnpm --filter website1 build\n      artifacts:\n        baseDirectory: apps/website1/.amplify-hosting\n        files:\n          - '**/*'\n      buildPath: /\n    appRoot: apps/website1\n","amplify.yml (monorepo)",[239,585,586,594,601,610,617,624,631,638,644,651,657,665,672,682,689,697,708],{"__ignoreMap":314},[318,587,588,590,592],{"class":320,"line":321},[318,589,471],{"class":470},[318,591,474],{"class":335},[318,593,478],{"class":477},[318,595,596,599],{"class":320,"line":339},[318,597,598],{"class":470},"applications",[318,600,486],{"class":335},[318,602,603,606,608],{"class":320,"line":345},[318,604,605],{"class":335},"  - ",[318,607,483],{"class":470},[318,609,486],{"class":335},[318,611,612,615],{"class":320,"line":352},[318,613,614],{"class":470},"      phases",[318,616,486],{"class":335},[318,618,619,622],{"class":320,"line":358},[318,620,621],{"class":470},"        preBuild",[318,623,486],{"class":335},[318,625,626,629],{"class":320,"line":364},[318,627,628],{"class":470},"          commands",[318,630,486],{"class":335},[318,632,633,636],{"class":320,"line":373},[318,634,635],{"class":335},"          - ",[318,637,516],{"class":515},[318,639,640,642],{"class":320,"line":379},[318,641,635],{"class":335},[318,643,523],{"class":515},[318,645,646,649],{"class":320,"line":436},[318,647,648],{"class":470},"        build",[318,650,486],{"class":335},[318,652,653,655],{"class":320,"line":441},[318,654,628],{"class":470},[318,656,486],{"class":335},[318,658,659,662],{"class":320,"line":546},[318,660,661],{"class":335},"            - ",[318,663,664],{"class":515},"pnpm --filter website1 build\n",[318,666,667,670],{"class":320,"line":554},[318,668,669],{"class":470},"      artifacts",[318,671,486],{"class":335},[318,673,674,677,679],{"class":320,"line":565},[318,675,676],{"class":470},"        baseDirectory",[318,678,474],{"class":335},[318,680,681],{"class":515},"apps/website1/.amplify-hosting\n",[318,683,684,687],{"class":320,"line":573},[318,685,686],{"class":470},"        files",[318,688,486],{"class":335},[318,690,692,694],{"class":320,"line":691},15,[318,693,635],{"class":335},[318,695,696],{"class":515},"'**/*'\n",[318,698,700,703,705],{"class":320,"line":699},16,[318,701,702],{"class":470},"      buildPath",[318,704,474],{"class":335},[318,706,707],{"class":515},"/\n",[318,709,711,714,716],{"class":320,"line":710},17,[318,712,713],{"class":470},"    appRoot",[318,715,474],{"class":335},[318,717,718],{"class":515},"apps/website1\n",[720,721,722],"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 .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}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 .sByVh, html code.shiki .sByVh{--shiki-light:#22863A;--shiki-default:#85E89D;--shiki-dark:#85E89D}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}",{"title":314,"searchDepth":339,"depth":339,"links":724},[725,726],{"id":250,"depth":339,"text":251},{"id":295,"depth":339,"text":296,"children":727},[728],{"id":447,"depth":345,"text":450},"Deploy Nitro apps to AWS Amplify Hosting.","md",{},{},{"title":132,"description":729},"cUp93EiiOMRM4GQRd58sXyNFqXWwJzZkuZQUdj-en0w",[736,738],{"title":128,"path":129,"stem":130,"description":737,"children":-1},"Deploy Nitro apps to AWS Lambda.",{"title":136,"path":137,"stem":138,"description":739,"children":-1},"Deploy Nitro apps to Azure Static Web apps or functions.",1775117856033]