How to push your Lambda function into Amplify + NextJs MonoRepo

  1. Write code
  2. Commit only the files you’ve made changes to
  3. Amplify pull to fetch the latest changes in the Amplify backend (cloud)

     amplify pull
    
  4. Revert commit

  5. Amplify push
  6. Check you’re only updating functions you’re supposed to, nothing more
  7. Add only the files you’ve changed, commit and push it to your branch in git