From 8faa30264fd88e7a00bd4abcec346fd420e37ef7 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Wed, 21 May 2025 14:44:09 -0500 Subject: [PATCH 1/2] chore(amplify): add Node.js version 22 installation in preBuild phase This commit updates the amplify.yml file to include commands for installing and using Node.js version 22 in both the backend and frontend preBuild phases. This ensures a consistent Node.js environment during the build process. --- amplify.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/amplify.yml b/amplify.yml index e69489b5..429d3f62 100644 --- a/amplify.yml +++ b/amplify.yml @@ -1,12 +1,22 @@ 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 install 22 + - nvm use 22 + - npm ci build: commands: - npm run build @@ -18,4 +28,4 @@ frontend: paths: - .next/cache/**/* - .npm/**/* - - node_modules/**/* \ No newline at end of file + - node_modules/**/* From 16a4af65c1b8bd5e260560c6a52eea88f40f6d5e Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Wed, 21 May 2025 14:47:08 -0500 Subject: [PATCH 2/2] chore(nvm): update .nvmrc to disable corepack This commit modifies the .nvmrc file to disable corepack, ensuring a more streamlined Node.js environment for the project. --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index 2bd5a0a9..9471d3db 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +corepack-disable