Dominik G.

Results 354 comments of Dominik G.

https://www.npmjs.com/package/server-only?activeTab=code ```json { "name": "server-only", "description": "This is a marker package to indicate that a module can only be used in Server Components.", "keywords": [ "react" ], "version": "0.0.1", "homepage":...

please provide a link to a repository with a complete and minimal reproduction. You mention a custom adapter and the filename you use `layout.ts` is missing the `+` at the...

you can't use localStorage in +layout.ts without an if(browser) guard, spa mode or not. also you have to put code in exported functions, not top level.

~~it looks like that was added in https://github.com/sveltejs/kit/pull/9619/files but not sure if intentional.~~ ~~@benmccann do you remember why that cors setting was added to the config modifications?~~ different PR, see...

I am not sure overriding user provided options is the right way here. having cors disabled is something users might want even in dev/preview. The example in #8731 (good find)...

as a workaround, you can add a vite plugin with a config hook after the sveltekit plugin to reset it to false: ``` plugins:[sveltekit(),{ name: 'vite-plugin-no-cors-config', config(){ return {server:{cors: false},...

there is a `fromStore` helper https://svelte-5-preview.vercel.app/docs/imports#svelte-store-fromstore and you can also use $derived to dig into stores `let bar = $derived($someStore.foo.bar)` The most used thing is probably page data and thats...

you are right, page data in $props is only available on the route itself. From my experience you can get pretty far with that, only reaching for the page store...

is there anything kit can/should do here? Looks like yarn pnp still has issues to solve on their end. The fs.allow setting can be provided by pnp users in config....

how would that work? The code emitted by the generated svelte5 icon components is pretty minimal already and compresses well. And even if snippet mode performed slightly better, it looks...