From 8f4f8be21c5bdcde20924e6690cf09cd1829a166 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Wed, 4 Jun 2025 21:31:36 -0500 Subject: [PATCH] chore(amplify): remove unnecessary preBuild commands in amplify.yml This commit simplifies the amplify.yml configuration by removing redundant preBuild commands related to Node version management and npm installation, streamlining the build process for both backend and frontend phases. --- amplify.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/amplify.yml b/amplify.yml index 83c90f5d..e69489b5 100644 --- a/amplify.yml +++ b/amplify.yml @@ -1,21 +1,12 @@ version: 1 backend: phases: - preBuild: - commands: - - nvm install 22 - - nvm use 22 build: commands: - npm ci --cache .npm --prefer-offline - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID - frontend: phases: - preBuild: - commands: - - nvm use 22 - - npm ci build: commands: - npm run build @@ -27,4 +18,4 @@ frontend: paths: - .next/cache/**/* - .npm/**/* - - node_modules/**/* + - node_modules/**/* \ No newline at end of file