Require('dotenv').config() Uncaught ReferenceError: require is not defined

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!

you don’t have to hide them:
https://docs.moralis.io/misc/faq#my-moralis-app-id-is-publicly-visible-on-the-frontend.-is-this-a-security-risk