import.meta.env in cloudflare pages

Whenever I try to use
import.meta.env
I get undefined, but
process.env
works. Is there a reason for this?

There's one post on the forum, but no one has answered yet.
https://community.cloudflare.com/t/access-environment-variables-in-pages-in-ssr/725469
Was this page helpful?