How to get server id of my node app?


#1

my project : tasteful-lemonade.glitch.me
help me please :cry:


#2

Can you please be specific describing server id ?

However, the process.env contains many environment variables such as PROJECT_ID, HOST_ADDRESS, PROJECT_DOMAIN, HOSTNAME, DEFAULT_NODE_VERSION

You can use any of them this way process.env.VARIABLE where variable is the environment variable

console.log(process.env.PROJECT_ID);