NextJS 15 builds with opennext not pulling env vars from dashboard
I'm trying to use Cloudflare CI for NextJS 15, and no matter what I do it's unable to properly read env vars into process.env (I'm getting
supabaseUrl is required). I've tried setting it in the dashboard as well as in wrangler.jsonc, but no dice.
I've tried both @opennextjs/cloudflare 1.6.5 and 1.11.0.
Edit: worked when I copied all my env vars into the build variables/secrets section. Maybe this is a weird quirk of NextJS interacting with CF CI. Is there a way to automatically mirror env vars across build + runtime? This is really annoying otherwise.1 Reply
Thanks for the feedback kyle, I'll bring this up with the team tomorrow. I've also experienced the same thing with OpenNext and found it a bit confusing, so happy to hear from other users 🙂