Question · Next.js course · Module 2: Routing and Layouts
Public Environment Variables in Next.js
What prefix must an environment variable have to be accessible on the client side in Next.js?
Answer options
- PUBLIC_
- CLIENT_
- NEXT_PUBLIC_
- BROWSER_
Show the answer
Correct answer:
- NEXT_PUBLIC_