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