environment variable

I defined a Environment Variables on the dashboard
Variable name = SERVER_URL, Value = server.xxx.com

In my code I use const serverURL = env.SERVER_URL or ENV.SEREVER_URL to call this variable that was defined on the dashboard but the console will show env, ENV is not defined.

Then I try using const serverURL = process.env.SERVER_URL, console will show Server URL : undefined.

How can I call SERVER_URL that was defined on the dashboard?
Was this page helpful?