mirror of
https://github.com/langgenius/webapp-text-generator.git
synced 2026-07-25 13:46:05 -04:00
Is it safe to use NEXT_PUBLIC_APP_KEY for storing an API key? #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @savokiss on GitHub (Oct 30, 2023).
As far as I know, the
NEXT_PUBLIC_prefix is typically used for non-sensitive environment variables.If you use this prefix to store an API key, there is a chance that it could be leaked, right?
@crazywoola commented on GitHub (Nov 8, 2023):
See this doc
I don't think the prefix will affect the security. It's more like a convention.
@savokiss commented on GitHub (Nov 8, 2023):
So, As I can find my NEXT_PUBLIC_APP_KEY in the dev mode on my browser's source code, you mean if I use vercel, it won't be exposed to the browser?