Doubt on adding dynamic endpoints in client side SSD

here im reading the url from the env and how can i give the end point as dynamic

Hello @Aswin ,
if you want to make it dynamic, you can create the URL in a script node based on your needs, store it in a bh.local variable, and then use it here.

can we access the variable like client.env.ssdURL ??

how can we access the env ?

Hello @Aswin ,
We can access the environment variables using process.env. You can retrieve them from the environment section using this and use them as needed based on your requirements.

ERROR

src/app/components/home.component.ts:86:19 - error TS2591: Cannot find name ‘process’. Do you need to install type definitions for node? Try npm i --save-dev @types/node and then add ‘node’ to the types field in your tsconfig.

86 const url = process.env.ssdURL;
~~~~~~~

im working in the client side not the server side when i tried this i got the error

Hello @Aswin ,
if you are in frontend, you can use env node to get the env’s