79115868

Date: 2024-10-22 22:04:47
Score: 2.5
Natty:
Report link

hi pam in nextjs we could access enviroment variables with 'NEXT_PUBLIC_' prefix .so for you in .env file you have to name your variable 'NEXT_PUBLIC_SOME_VALUE' and for accessing it in you component's or pages you need to write process.env.NEXT_PUBLIC_SOME_VALUE

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: arashk yadegar