[{"data":1,"prerenderedAt":749},["ShallowReactive",2],{"navigation":3,"-deploy-providers-aws-amplify":234,"-deploy-providers-aws-amplify-surround":744},[4,81,228],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Getting Started","/guide","1.guide/0.index",[9,11,16,21,26,31,36,41,46,51,56,61,66,71,76],{"title":5,"path":6,"stem":7,"icon":10},"ph:book-open-duotone",{"title":12,"path":13,"stem":14,"icon":15},"Migration Guide","/guide/migration","1.guide/00.migration","ri:arrow-right-up-line",{"title":17,"path":18,"stem":19,"icon":20},"Server Utils","/guide/utils","1.guide/1.utils","ri:tools-line",{"title":22,"path":23,"stem":24,"icon":25},"Tasks","/guide/tasks","1.guide/10.tasks","codicon:run-all",{"title":27,"path":28,"stem":29,"icon":30},"Server Routes","/guide/routing","1.guide/2.routing","ri:direction-line",{"title":32,"path":33,"stem":34,"icon":35},"WebSocket","/guide/websocket","1.guide/3.websocket","cib:socket-io",{"title":37,"path":38,"stem":39,"icon":40},"KV Storage","/guide/storage","1.guide/4.storage","carbon:datastore",{"title":42,"path":43,"stem":44,"icon":45},"SQL Database","/guide/database","1.guide/5.database","ri:database-2-line",{"title":47,"path":48,"stem":49,"icon":50},"Cache","/guide/cache","1.guide/6.cache","ri:speed-line",{"title":52,"path":53,"stem":54,"icon":55},"Fetch","/guide/fetch","1.guide/7.fetch","ri:global-line",{"title":57,"path":58,"stem":59,"icon":60},"Assets","/guide/assets","1.guide/8.assets","ri:image-2-line",{"title":62,"path":63,"stem":64,"icon":65},"Plugins","/guide/plugins","1.guide/9.plugins","ri:plug-line",{"title":67,"path":68,"stem":69,"icon":70},"Configuration","/guide/configuration","1.guide/97.configuration","ri:settings-3-line",{"title":72,"path":73,"stem":74,"icon":75},"TypeScript","/guide/typescript","1.guide/98.typescript","tabler:brand-typescript",{"title":77,"path":78,"stem":79,"icon":80},"Nightly Channel","/guide/nightly","1.guide/99.nightly","ri:moon-fill",{"title":82,"path":83,"stem":84,"children":85,"icon":87},"Overview","/deploy","2.deploy/0.index",[86,88,92,122,127],{"title":82,"path":83,"stem":84,"icon":87},"ri:upload-cloud-2-line",{"title":89,"path":90,"stem":91,"icon":55},"Edge Workers","/deploy/workers","2.deploy/1.workers",{"title":93,"path":94,"stem":95,"children":96,"page":121},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[97,102,106,111,116],{"title":98,"path":99,"stem":100,"icon":101},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":103,"path":104,"stem":105,"icon":25},"Dir","/deploy/runtimes/_dir","2.deploy/10.runtimes/_dir",{"title":107,"path":108,"stem":109,"icon":110},"WinterJS","/deploy/runtimes/_winterjs","2.deploy/10.runtimes/_winterjs","game-icons:cold-heart",{"title":112,"path":113,"stem":114,"icon":115},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":117,"path":118,"stem":119,"icon":120},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":123,"path":124,"stem":125,"icon":126},"Custom Preset","/deploy/custom-presets","2.deploy/2.custom-presets","ri:file-code-line",{"title":128,"path":129,"stem":130,"children":131,"page":121},"Providers","/deploy/providers","2.deploy/20.providers",[132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224],{"title":103,"path":133,"stem":134,"icon":135},"/deploy/providers/_dir","2.deploy/20.providers/_dir","tdesign:cloud",{"title":137,"path":138,"stem":139},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":141,"path":142,"stem":143},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":145,"path":146,"stem":147},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":149,"path":150,"stem":151},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":153,"path":154,"stem":155},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":157,"path":158,"stem":159},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":161,"path":162,"stem":163},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":165,"path":166,"stem":167},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":169,"path":170,"stem":171},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":173,"path":174,"stem":175},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":177,"path":178,"stem":179},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":181,"path":182,"stem":183},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":185,"path":186,"stem":187},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":189,"path":190,"stem":191},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":193,"path":194,"stem":195},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":197,"path":198,"stem":199},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":201,"path":202,"stem":203},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":205,"path":206,"stem":207},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":209,"path":210,"stem":211},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":213,"path":214,"stem":215},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":217,"path":218,"stem":219},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":221,"path":222,"stem":223},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":225,"path":226,"stem":227},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":229,"path":230,"stem":231,"children":232,"icon":70},"Config","/config","3.config/0.index",[233],{"title":229,"path":230,"stem":231,"icon":70},{"id":235,"title":145,"body":236,"description":738,"extension":739,"meta":740,"navigation":741,"path":146,"seo":742,"stem":147,"__hash__":743},"content/2.deploy/20.providers/aws-amplify.md",{"type":237,"value":238,"toc":732},"minimark",[239,251,256,261,273,302,306,313,453,460,466,728],[240,241,242,246,247],"p",{},[243,244,245],"strong",{},"Preset:"," ",[248,249,250],"code",{},"aws_amplify",[252,253],"read-more",{"title":254,"to":255},"AWS Amplify Hosting","https://aws.amazon.com/amplify",[257,258,260],"h2",{"id":259},"deploy-to-aws-amplify-hosting","Deploy to AWS Amplify Hosting",[262,263,264],"tip",{},[240,265,266,267,272],{},"Integration with this provider is possible with ",[268,269,271],"a",{"href":270},"/deploy/#zero-config-providers","zero configuration",".",[274,275,277,287,290,293,296,299],"steps",{"level":276},"4",[278,279,280,281],"h4",{},"Login to the ",[268,282,286],{"href":283,"rel":284},"https://console.aws.amazon.com/amplify/",[285],"nofollow","AWS Amplify Hosting Console",[278,288,289],{},"Click on \"Get Started\" > Amplify Hosting (Host your web app)",[278,291,292],{},"Select and authorize access to your Git repository provider and select the main branch",[278,294,295],{},"Choose a name for your app, make sure build settings are auto-detected and optionally set requirement environment variables under the advanced section",[278,297,298],{},"Optionally, select Enable SSR logging to enable server-side logging to your Amazon CloudWatch account",[278,300,301],{},"Confirm configuration and click on \"Save and Deploy\"",[257,303,305],{"id":304},"advanced-configuration","Advanced Configuration",[240,307,308,309,312],{},"You can configure advanced options of this preset using ",[248,310,311],{},"awsAmplify"," option.",[314,315,316,392],"code-group",{},[317,318,324],"pre",{"className":319,"code":320,"filename":321,"language":322,"meta":323,"style":323},"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","",[248,325,326,346,352,359,365,371,380,386],{"__ignoreMap":323},[327,328,331,335,338,342],"span",{"class":329,"line":330},"line",1,[327,332,334],{"class":333},"so5gQ","export",[327,336,337],{"class":333}," default",[327,339,341],{"class":340},"shcOC"," defineNitroConfig",[327,343,345],{"class":344},"slsVL","({\n",[327,347,349],{"class":329,"line":348},2,[327,350,351],{"class":344},"  awsAmplify: {\n",[327,353,355],{"class":329,"line":354},3,[327,356,358],{"class":357},"sCsY4","      // catchAllStaticFallback: true,\n",[327,360,362],{"class":329,"line":361},4,[327,363,364],{"class":357},"      // imageOptimization: { path: \"/_image\", cacheControl: \"public, max-age=3600, immutable\" },\n",[327,366,368],{"class":329,"line":367},5,[327,369,370],{"class":357},"      // imageSettings: { ... },\n",[327,372,374,377],{"class":329,"line":373},6,[327,375,376],{"class":357},"      // runtime: \"nodejs18.x\",",[327,378,379],{"class":357}," // default: \"nodejs18.x\" | \"nodejs16.x\" | \"nodejs20.x\"\n",[327,381,383],{"class":329,"line":382},7,[327,384,385],{"class":344},"  }\n",[327,387,389],{"class":329,"line":388},8,[327,390,391],{"class":344},"})\n",[317,393,396],{"className":319,"code":394,"filename":395,"language":322,"meta":323,"style":323},"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",[248,397,398,409,414,419,423,428,432,438,443,448],{"__ignoreMap":323},[327,399,400,402,404,407],{"class":329,"line":330},[327,401,334],{"class":333},[327,403,337],{"class":333},[327,405,406],{"class":340}," defineNuxtConfig",[327,408,345],{"class":344},[327,410,411],{"class":329,"line":348},[327,412,413],{"class":344},"  nitro: {\n",[327,415,416],{"class":329,"line":354},[327,417,418],{"class":344},"    awsAmplify: {\n",[327,420,421],{"class":329,"line":361},[327,422,358],{"class":357},[327,424,425],{"class":329,"line":367},[327,426,427],{"class":357},"      // imageOptimization: { \"/_image\", cacheControl: \"public, max-age=3600, immutable\" },\n",[327,429,430],{"class":329,"line":373},[327,431,370],{"class":357},[327,433,434,436],{"class":329,"line":382},[327,435,376],{"class":357},[327,437,379],{"class":357},[327,439,440],{"class":329,"line":388},[327,441,442],{"class":344},"    }\n",[327,444,446],{"class":329,"line":445},9,[327,447,385],{"class":344},[327,449,451],{"class":329,"line":450},10,[327,452,391],{"class":344},[454,455,457],"h3",{"id":456},"amplifyyml",[248,458,459],{},"amplify.yml",[240,461,462,463,465],{},"You might need a custom ",[248,464,459],{}," file for advanced configuration. Here are two template examples:",[314,467,468,589],{},[317,469,473],{"className":470,"code":471,"filename":459,"language":472,"meta":323,"style":323},"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",[248,474,475,488,496,503,510,517,526,533,540,546,553,561,572,580],{"__ignoreMap":323},[327,476,477,481,484],{"class":329,"line":330},[327,478,480],{"class":479},"sByVh","version",[327,482,483],{"class":344},": ",[327,485,487],{"class":486},"suiK_","1\n",[327,489,490,493],{"class":329,"line":348},[327,491,492],{"class":479},"frontend",[327,494,495],{"class":344},":\n",[327,497,498,501],{"class":329,"line":354},[327,499,500],{"class":479},"  phases",[327,502,495],{"class":344},[327,504,505,508],{"class":329,"line":361},[327,506,507],{"class":479},"    preBuild",[327,509,495],{"class":344},[327,511,512,515],{"class":329,"line":367},[327,513,514],{"class":479},"      commands",[327,516,495],{"class":344},[327,518,519,522],{"class":329,"line":373},[327,520,521],{"class":344},"        - ",[327,523,525],{"class":524},"sfrk1","nvm use 18 && node --version\n",[327,527,528,530],{"class":329,"line":382},[327,529,521],{"class":344},[327,531,532],{"class":524},"corepack enable && npx --yes nypm install\n",[327,534,535,538],{"class":329,"line":388},[327,536,537],{"class":479},"    build",[327,539,495],{"class":344},[327,541,542,544],{"class":329,"line":445},[327,543,514],{"class":479},[327,545,495],{"class":344},[327,547,548,550],{"class":329,"line":450},[327,549,521],{"class":344},[327,551,552],{"class":524},"pnpm build\n",[327,554,556,559],{"class":329,"line":555},11,[327,557,558],{"class":479},"  artifacts",[327,560,495],{"class":344},[327,562,564,567,569],{"class":329,"line":563},12,[327,565,566],{"class":479},"    baseDirectory",[327,568,483],{"class":344},[327,570,571],{"class":524},".amplify-hosting\n",[327,573,575,578],{"class":329,"line":574},13,[327,576,577],{"class":479},"    files",[327,579,495],{"class":344},[327,581,583,586],{"class":329,"line":582},14,[327,584,585],{"class":344},"      - ",[327,587,588],{"class":524},"\"**/*\"\n",[317,590,593],{"className":470,"code":591,"filename":592,"language":472,"meta":323,"style":323},"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)",[248,594,595,603,610,619,626,633,640,647,653,660,666,674,681,691,698,706,717],{"__ignoreMap":323},[327,596,597,599,601],{"class":329,"line":330},[327,598,480],{"class":479},[327,600,483],{"class":344},[327,602,487],{"class":486},[327,604,605,608],{"class":329,"line":348},[327,606,607],{"class":479},"applications",[327,609,495],{"class":344},[327,611,612,615,617],{"class":329,"line":354},[327,613,614],{"class":344},"  - ",[327,616,492],{"class":479},[327,618,495],{"class":344},[327,620,621,624],{"class":329,"line":361},[327,622,623],{"class":479},"      phases",[327,625,495],{"class":344},[327,627,628,631],{"class":329,"line":367},[327,629,630],{"class":479},"        preBuild",[327,632,495],{"class":344},[327,634,635,638],{"class":329,"line":373},[327,636,637],{"class":479},"          commands",[327,639,495],{"class":344},[327,641,642,645],{"class":329,"line":382},[327,643,644],{"class":344},"          - ",[327,646,525],{"class":524},[327,648,649,651],{"class":329,"line":388},[327,650,644],{"class":344},[327,652,532],{"class":524},[327,654,655,658],{"class":329,"line":445},[327,656,657],{"class":479},"        build",[327,659,495],{"class":344},[327,661,662,664],{"class":329,"line":450},[327,663,637],{"class":479},[327,665,495],{"class":344},[327,667,668,671],{"class":329,"line":555},[327,669,670],{"class":344},"            - ",[327,672,673],{"class":524},"pnpm --filter website1 build\n",[327,675,676,679],{"class":329,"line":563},[327,677,678],{"class":479},"      artifacts",[327,680,495],{"class":344},[327,682,683,686,688],{"class":329,"line":574},[327,684,685],{"class":479},"        baseDirectory",[327,687,483],{"class":344},[327,689,690],{"class":524},"apps/website1/.amplify-hosting\n",[327,692,693,696],{"class":329,"line":582},[327,694,695],{"class":479},"        files",[327,697,495],{"class":344},[327,699,701,703],{"class":329,"line":700},15,[327,702,644],{"class":344},[327,704,705],{"class":524},"'**/*'\n",[327,707,709,712,714],{"class":329,"line":708},16,[327,710,711],{"class":479},"      buildPath",[327,713,483],{"class":344},[327,715,716],{"class":524},"/\n",[327,718,720,723,725],{"class":329,"line":719},17,[327,721,722],{"class":479},"    appRoot",[327,724,483],{"class":344},[327,726,727],{"class":524},"apps/website1\n",[729,730,731],"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":323,"searchDepth":348,"depth":348,"links":733},[734,735],{"id":259,"depth":348,"text":260},{"id":304,"depth":348,"text":305,"children":736},[737],{"id":456,"depth":354,"text":459},"Deploy Nitro apps to AWS Amplify Hosting.","md",{},{},{"title":145,"description":738},"cUp93EiiOMRM4GQRd58sXyNFqXWwJzZkuZQUdj-en0w",[745,747],{"title":141,"path":142,"stem":143,"description":746,"children":-1},"Deploy Nitro apps to AWS Lambda.",{"title":149,"path":150,"stem":151,"description":748,"children":-1},"Deploy Nitro apps to Azure Static Web apps or functions.",1778145698934]