I made .env file in nextjs app, and I use the environment variables on local. It was worked perfectly. But after I deployed with firebase hosting, error occured. The error is caused by the environmental variable not being recognized. how can I use .env file with firebase hosting? I spent 3 hours on this error..
It's my .env file
NEXT_PUBLIC_MONGO_URI=
NEXT_PUBLIC_MORALIS_API_KEY=
NEXT_PUBLIC_ALCHEMY_API_KEY=
NEXT_PUBLIC_NEXTAUTH_SECRET=
NEXT_PUBLIC_FIREBASE_STORAGE_URL=