Yes, this will include the API key in your frontend code. You should instead create an API endpoint or use Server Actions (if you're using nextjs) for this.
I'm a Full stack ninja crafting innovative solutions for real-world impact. Passionate about user-centric applications and driving business through technology.
Would this approach expose your api key?
Yes, this will include the API key in your frontend code. You should instead create an API endpoint or use Server Actions (if you're using nextjs) for this.
Hello @greg, we should always use API key as environment variables in .env files.