Cloudflare DevelopersCD
Cloudflare Developers11mo ago
41 replies
Kenny

NextJS NEXT_PUBLIC vars on the client

NEXTPUBLIC* variables should be accessible on the client-side yet process.env isn't available and import { getRequestContext } from "@cloudflare/next-on-pages"; is only available on the server. How can I access these public variables on the client?
Was this page helpful?