Try to use NEXT_PUBLIC_ prefix. Docs says, that this method allows you to use env variables in the browser.
NEXT_PUBLIC_