it does but i just set it up in wrangler

it does but i just set it up in wrangler.jsonc, and then update cloudflare type to update the env from get cloudflare context
5 Replies
Detuks
Detuks2mo ago
You mean add "experimental_remote": true and
initOpenNextCloudflareForDev({
experimental: { remoteBindings: true },
});
initOpenNextCloudflareForDev({
experimental: { remoteBindings: true },
});
And static pages that require databse builds correctly and all good?
𝐉𝐮𝐳𝐨𝐨 いいえ
yes and then use getCloudflare context, and use the env.YourDB in your route or ts/js file and always use the env from getCloudflareContext()
Detuks
Detuks2mo ago
You use async on sync?
𝐉𝐮𝐳𝐨𝐨 いいえ
and when u add a new secret to your .dev.vars dont forget to update, your cloudflare types depends
Detuks
Detuks2mo ago
Now I'm very curious why it doesnt work for me 😄

Did you find this page helpful?