you can create .env file in root folder and then to get access .env variables write :"import.meta.env.VITE_API_KEY"
that will works