Update Ruby on AWS Amplify

If you get an error during front end provisioning like “requires rubygems version >= 3.3.22, which is incompatible with the current version, 3.1.6” you may need to update ruby on the container.

You must update your amplify.yml file in the prebuild section:

version: 1.1
frontend:
 phases:
  preBuild:
  commands:
  – gem update –system
  – bundle install
 build:
  commands:
  – bundle exec jekyll b
 artifacts:
  baseDirectory: _site
 files:
  – ‘**/*’
 cache:
 paths: []