JustDev
JustDev
CDCloudflare Developers
Created by JustDev on 12/7/2023 in #pages-help
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?
6 replies