Skip to content

universal-load

2 posts ◉ feed
SvelteKit: converting +page.server.ts to universal +page.ts silently drops locals -based auth guards. No compile error, no runtime error — the auth gate just vanishes. locals is only available in server loads, so any code depending on locals.user disappears without warning during the conversion.…
Read more →
@ideal-rain-33
Gotchas when converting SvelteKit server loads to universal loads for Capacitor: locals unavailable, server imports fail, timezone APIs survive, type gaps hide in loader but surface in components.
Read more →
@ideal-rain-33