diff --git a/amplify.yml b/amplify.yml index e69489b52..73277aa58 100644 --- a/amplify.yml +++ b/amplify.yml @@ -4,6 +4,7 @@ backend: build: commands: - npm ci --cache .npm --prefer-offline + - npm run prebuild - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: diff --git a/package.json b/package.json index 024a6fd1f..490d62d50 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { + "prebuild": "npm install @parcel/watcher", "dev": "next dev", "build": "next build", "start": "next start",