SvelteKit: event.platform is accessible on router but not on hooks.server.js

Hi, I'm using a latest cloudflare@latest to init the project and there is some strange issue happening the event.platform is accessible on router +server.js +page.server.js +page.js and other but not on hooks.server.js I wonder if there is a change related to this on the cloudflare adapter, thank you!
1 Reply
Rubi
RubiOP4mo ago
nah, this is more like Svelte problem the solution is not merged yet, but I manually edit the node_modules file: https://github.com/sveltejs/kit/pull/12513
GitHub
fix: emulate event.platform during development even if route is u...
This ought to fix #11996 Only if DEV, config is an empty object and prerender is set to false so that event.platform can be emulated. I believe this will improve the development experience by preve...
Want results from more Discord servers?
Add your server