I have one .env file , that looks like :
NODE_ENV = local PORT = 4220 BASE_URL = "http://198.**.**.**:4220/" PROFILE_UPLOAD = http://198.**.**.**:4220/uploads/profile/ POST_UPLOAD = http://198.**.**.**:4220/uploads/discussion/ COMPANY_UPLOAD = http://198.**.**.**:4220/uploads/company/ ITEM_UPLOAD = http://198.**.**.**/uploads/item/ GROUP_UPLOAD = http://198.**.**.**/uploads/group/ I want to do something like this :
NODE_ENV = local IP = 198.**.**.** PORT = 5000 BASE_URL = http://$IP:$PORT/ PROFILE_UPLOAD = $BASE_URL/uploads/profile/ POST_UPLOAD = $BASE_URL/uploads/discussion/ COMPANY_UPLOAD = $BASE_URL/uploads/company/ ITEM_UPLOAD = $BASE_URL/uploads/item/ GROUP_UPLOAD = $BASE_URL/uploads/group/ Expected result of BASE_URL is http://198.**.**.**:4220/
I have tried many few syntax but not getting computed values
Tried Syntax : "${IP}" , ${IP} , $IP
I have used dotenv package , for accessing env variables.