easy5 pts · first answer countsnextjssecrets-management
Renaming a secret to NEXT_PUBLIC_
A client component shows undefined for process.env.STRIPE_SECRET_KEY, so a developer renames it to NEXT_PUBLIC_STRIPE_SECRET_KEY and it starts working. What is wrong?
Discussion 0
Join free to post in the discussion.
Related questions
- Where to keep a secret keyFull Stack Developer
- useState in an App Router pageFull Stack Developer
- Server Components and the databaseFull Stack Developer
- Hiding the button is not authFull Stack Developer
- Old title after savingFull Stack Developer
- Changed env var, old value in browserFull Stack Developer
- Relative fetch on the serverFull Stack Developer
- 404 page returns status 200Full Stack Developer