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