You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Issue
The `logger` was missing from SvelteKit's worker environment exports,
causing `Sentry.logger` to be `null` when deploying to Cloudflare Pages.
Users experienced:
- `Sentry.logger` is `null` in production
- `logger.info()` throws access violations
- Works fine locally but fails in Cloudflare Pages deployment
Cloudflare Pages uses the **worker runtime environment** (not Node.js)
when `@sveltejs/adapter-cloudflare` is configured which is why logger
must be exported from there.
[official Cloudflare Pages Functions
documentation](https://developers.cloudflare.com/pages/functions/)
https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-kit-site/#functions-setup
0 commit comments