2

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=
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
judy
  • 67
  • 1
  • 4

0 Answers0