Next.js Discord

Discord Forum

Runtime client env

Unanswered
Taken posted this in #help-forum
Open in Discord
Is there anyway to load the client env variables prefixed with NEXT_PUBLIC on intial load instead of them being injected on build. Since i want to make a reusable docker image people could use without build.

4 Replies

Asian black bear
still getting annoying issues
tbf i removed the client env i was used it in one place
American Crocodile
I have hydration error using this package in a Nextjs 15 app (not ready yet). Someone face the same issue?