Commit e0c9059
authored
fix: Export logger from sveltekit worker (#16716)
### 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-setup1 parent ebc1e26 commit e0c9059
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments