I tried to put in process.env.thisisdavariable in the html. It didnt work.
This isn’t possible because .env variables should be private and only be seen on the server side.
Are you doing this on a static site? There’s no way to fetch environment variables in that case. For this you will need a custom server program that sends the variable. This may or may not defeat the purpose of .env based on how you are using it though