'I am trying to hide two environment variables from an .env file but in the browser it doesn't work

I’m trying to hide Server URL and Application ID from this tutorial: https://github.com/MoralisWeb3/youtube-tutorials/tree/main/nft-minter that is a vanilla boilerplate, using Dotenv (.env) but the browser sent me this: " require(‘dotenv’).config() Uncaught ReferenceError: require is not defined ". I have followed all steps from https://www.npmjs.com/package/dotenv but i have a error, help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source