DEV Community

Discussion on: Getting Started with ElevenLabs Text-to-Speech API

Collapse
 
ssk14 profile image
Sanjay 🥷

Hello @greg, we should always use API key as environment variables in .env files.

Collapse
 
msopacua profile image
msopacua

That doesn't help. The variables will be exposed, since the build process will include them in the generated bundle. Dotenv only prevents it to be exposed to the git repository.