Difficulties using gitlab variables in react application using vite

We are configuring the CI/CD process in EKS. I have 4 environments, develop, testing, staging and production, the problem is, I use the variables configured in gitlab, my publish process sets the variables correctly, but I cannot get the application to understand this, in the tsx file where the reading the variable, I always have the problem of undefined value. The project is a react portal that uses vites for build.

My enviroment VITE_BASE_URL, is the URL that the react will call the api.

image