How to Deploy A react Application into AWS Amplify

version: 1
frontend:
  phases:
    preBuild:
      commands:
        - git config --global credential.helper '!aws codecommit credential-helper [email protected]'
        - git config --global credential.UseHttpPath true
        - yarn install
    build:
      commands:
        - yarn run build
  artifacts:
    baseDirectory: build
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

Leave a Comment

Your email address will not be published. Required fields are marked *