my project : tasteful-lemonade.glitch.me
help me please
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);
Hi,
I came across this issue because I’m trying to set the HOST variable in my .env file so that I can set up proxy requests within create-react-app: https://create-react-app.dev/docs/proxying-api-requests-in-development.
I’ve tried setting HOST to the HOSTNAME and the HOST_ADDRESS contained in the environment variable, as well as project-name.com, and none of them worked. Maybe this is the sort of thing the OP was looking for? Any idea what I should set the HOST variable to for these purposes for a project hosted on Glitch?