Resolving nextjs PUBLIC_ENV undefined prod issue
Context
Backstory
The Issue
The solution
Closing notes
Context
Next.js allows us to define env vars that we want to expose to the browser (consequently making them public) with the prefix NEXT_PUBLIC_, meaning that they will be bundled into the code...
terminal-knight.hashnode.dev4 min read