Unable to access Netlify environment variables when using Vite with react

Okay thanks for the update.
How to use this as mentioned in this article.

[Support Guide] How do I keep my API keys/tokens safe using Netlify Functions?.

I mean with $API_TOKEN as mentioned there.