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