I have only a simple frontend React/Vite application (used for AWS Cognito login), no backend.
All my environment variables are in an .env file prefixed with “VITE_”.
How can I keep them secrets when I build the application (vite build) ?
Right now, they appear into the dist/assets files and thus become readable into the browser, which makes sense but certainly not what I want.
(some of them are credentials & password by example to access to AWS Cognito pool).
Thanks