Vibe coding · Microlearning
Store your keys safely
An API key in your source code is not a cosmetic flaw, it is an open door. The .env file is where it belongs instead.
About 7 minutesUp to 100 LP

Ben · Founder of Creaiter
Your learning goal
You will spot secrets, decide about NEXT_PUBLIC_ on purpose, and know what has to happen first in an emergency.
- 1Tell secrets apart from ordinary configuration
- 2Separate server values from public values
- 3Handle a leaked key correctly