Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After several attempts to fix this error and considering that it could be a version issue, as tried in PR (#1573) but in Docker, I noticed that Netlify uses an outdated default version. Although this change can be managed through environment variables, I don’t think it's best to handle it that way. Instead, it should be specified in a file so that administrators don’t have to manually change the version through the settings.
Resources:
https://answers.netlify.com/t/cant-deploy-with-ruby-3-1-2/55728
https://docs.netlify.com/configure-builds/available-software-at-build-time/
https://docs.netlify.com/configure-builds/manage-dependencies/#ruby
Close:
#1566
Edit: I just realized that the Docker configuration also needs to be fixed.
Edit: I'm not sure if these changes will work on GitHub Pages. If they don't work, it will be necessary to change the version using environment variables.
Edit: I have been testing in my repository, and GitHub Pages seems to work fine, so setting a specific Ruby version wouldn't be a problem.