Environment variables in Nextsj

I have a Nextjs v14 application and I’m not able to use environment variables, how should I use environment variables in Nextjs?

Hi Matheus,

I’d start by reviewing this next JS documentation: https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables

If you’re still running into issues could you elaborate on exactly what you’re trying to do and where you’re running into troubles? Any error logs you can provide would be helpful.