I have a +page.server.js
file with a export async function load({ platform }) {}
function. When I set export const prerender = true
at the top, platform.env
is undefined. Without prerender it works and I can access my R2 bucket. This is all in production and not local.
I tried multiple combinations and configurations. There is no documentation on this issue, neither from cloudflare nor from sveltekit.