diff --git a/amplify.yml b/amplify.yml index 4fac5153..e69489b5 100644 --- a/amplify.yml +++ b/amplify.yml @@ -1,22 +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 - + - 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 @@ -28,4 +18,4 @@ frontend: paths: - .next/cache/**/* - .npm/**/* - - node_modules/**/* + - node_modules/**/* \ No newline at end of file diff --git a/package.json b/package.json index 5afdbe72..49f69fc1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ "test:watch": "jest --watch", "test:coverage": "jest --coverage" }, + "engines": { + "node": "22.12.0" + }, "lint-staged": { "*.{js,jsx,ts,tsx,json,css,scss,md}": [ "prettier --write"