Jekyll deployment error on Vercel due to Ruby version mismatch

34 viewsjekylljekyll themerubyvercel
0

I’m trying to deploy a Jekyll site to Vercel using the chirpy theme; as per the documentation, I used the Chirpy Start template to create a new repo on my GitHub account, I cloned the repo and imported it to Vercel. Since I haven’t modified anything in the original project I expected everything to work well so far, but when Vercel tried to build the site I got the error below:

enter image description here

Unless I am utterly mistaken, I understand that the error is caused because the Vercel server is running Ruby v2.7.0, instead of v3.0 or greater as mandated by the jekyll-theme-chirpy gem. I find this confusing, since according to this post, Vercel should be using Ruby v3.2.x by default:

enter image description here

In order to solve the problem, I’ve tried to change my Gemfile to specify a more recent Ruby version, and also I’ve tried to add a custom installation step on Vercel that runs a script to upgrade Ruby, but none of that has worked, so I’ve decided to ask for help; ideally I would like a solution that allows me to use the most up-to-date version of Chirpy, but if that’s not possible I would be pleased if you could suggest Jekyll theme alternatives that work with Ruby v2.7.0.