Cloudflare Pages prod env vars inconsistently retrieved
1. Public env vars like
import.meta.env.VITE_BETTER_AUTH_URL that appear populated in the Cloudflare console for the worker are undefined at execution time2.
getContext("cloudflare") seems to inconsistently return undefined in general which creates bugs in my applicationAny idea what I'm doing wrong?
I've pasted some code below and attached some files (Please let me know if I can provide any additional context).