Use custom environment variables in local plugins

Hi, I used to be able to cast environment varibles to the frontend to be used in my plugins (in v3) as specified in Use .env in local plugin but I cant seem to find a way to do htis in V4, any advice?

Thanks!

did you ever find a solution for this?