Hey can someone explain why i keep getting an error here?
For Next.js, use NEXT_PUBLIC_
instead of REACT_APP_
in your .env.local
file.
Basic Features: Environment Variables | Next.js (nextjs.org)
Make sure you restart your app server.
Is your .env.local
file in your projectβs root directory? Have you changed the variable names that are used in <MoralisProvider>
?
NEXT_PUBLIC_MORALIS_SERVER_URL=https://urlhere.com NEXT_PUBLIC_MORALIS_APP_ID=idhere