Next.js Discord

Discord Forum

How can I hide API key from Github?

Unanswered
Red-breasted Merganser posted this in #help-forum
Open in Discord
Red-breasted MerganserOP
I want to hide my api key from Github. Is there anyway to do this in Next.js?

2 Replies

Chinese Alligator
is using .env not good enough?
@Red-breasted Merganser I want to hide my api key from Github. Is there anyway to do this in Next.js?
use an environment variable that is not prefixed with NEXT_PUBLIC