Next.js Discord

Discord Forum

.env variable not defined

Unanswered
Giant Chinchilla posted this in #help-forum
Open in Discord
Original message was deleted.

1 Reply

Avatar
New Zealand Heading Dog
It seems like it's only happening on the actual web application itself. This may seem simple but here's a couple suggestions:
- Have you tried removing the .toString() from that console.log?
- Try deleting the .next folder in your project directory (the cache) and restarting your dev environment. This may seem simple, but I've had errors/weird bugs in my applications before which were fixed after deleting the cache and restarting the dev environment.