diff --git a/.nvmrc b/.nvmrc index 2bd5a0a9..9471d3db 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +corepack-disable 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/**/*