79328089

Date: 2025-01-04 01:59:38
Score: 0.5
Natty:
Report link

I figure this out myself. I change the amplify build setting to the following

version: 1
applications:
    -
        backend:
            phases:
                build:
                    commands: ['npm ci --cache .npm --prefer-offline', 'npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID']
        frontend:
            phases:
                build:
                    commands: ['mkdir ./dist && touch ./dist/index.html']
            artifacts:
                baseDirectory: dist
                files:
                    - '**/*'
            cache:
                paths:
                    - '.npm/**/*'
        appRoot: packages/shared_backend
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JosephHung