As I take it, environment variables prefixed with NEXT_PUBLIC_
will be substituted by their respective values in the resulting bundle.
Is it safe to supply things like API keys, OAuth secrets and the like using NEXT_PUBLIC_*
variables or can an end user theoretically access these secret values? If this is the case, then what is the recommended approach to circumventing this potential security issue?
Thank you all for clarification.