This question is about Cycling
You should eat a full meal 2-4 hours before a bike ride, followed by a small carbohydrate-rich snack 15-30 minutes before starting. Pre-ride meals should contain at least 55-65% calories from carbohydrate along with some lean protein and healthy fat [ 1
Mata, F., Valenzuela, P. L., Gimenez, J., Tur, C., Ferreria, D., Domínguez, R., Sanchez-Oliver, A. J., & Martínez Sanz, J. M. (2019). Carbohydrate Availability and Physical Performance: Physiological Overview and Practical Recommendations. Nutrients, 11(5), 1084. https://doi.org/10.3390/nu11051084