Capacitor with create-react-app does not recognize .env variables in the andriod or ios build

I’m trying to use capacitor with create-react-app, I was able to run the app on android and ios but the builds don’t recognize the .env with all the environment variables? … Anybody knows to solve this problem, I was searching and I did not find a solution.