What is the routes.yaml max file size?

Is it a number of routes? Characters? File size?

It’s not a particular size of the yaml file, it’s the length of the PLATFORM_ROUTES environment variable.
32767 characters of encoded base64 json is the limit.