Older ruby version not loading

Hello,
I just started my free tier and tried to deploy my Rails app. But I use Ruby 3.2.3, and I got error that gemfile version doesn’t match the used one (3.3.0). The thing is, documentation says that Vercel uses ruby version defined in Gemfile, so how is that possible?

I’m very new, I might have made a stupid mistake. Thanks for help.

Here’s how you can define version of Ruby in Gemfile Using the Ruby Runtime with Vercel Functions

So I think that’s how defined ruby version already:

# frozen_string_literal: true

source 'https://rubygems.org'

ruby '3.2.3'

Is this any different?
Also consider that my GitHub repo is in no way prepared for Vercel, I have no idea what Ruby Serveless Functions are, or api/index.rb or cowsay. I just deployed this app successfully on Render and hoped to do the same on Vercel. It’s a simple Rails app, nothing special.

So does Vercel require a separate repository, properly configured?

Yeah so to run make sure your .rb file is in /api folder so our build can consider it as Serverless Functions.