News for hackers. Stuff that matters.
Re:The Truth about Svelte by ryan29 on Tuesday July 11, 2023 @06:34PM (#36688162)
I haven't used Svelte beyond a couple toy tutorials, but, for me, the infrastructure adapters [1] are the most exciting thing. I love the idea of being able to build using Svelte and auto-magically deploy to something like Cloudflare Pages without completely giving up the potential to deploy somewhere else.

1. https://kit.svelte.dev/docs/adapters

Re:The Truth about Svelte by xrd on Tuesday July 11, 2023 @06:38PM (#36688197)
I've got mixed feelings about this and I'm sure I'm in the minority. Those adapters are usually supported by the commercial company that wants you to use them. But, for example, the static or node adapters often don't work great with the important parts of svelte kit like SSR, and feel like second class citizens.

I love svelte but I'm having a hard time getting the same development ergonomics out of svelte kit. It's probably just me.

Re:The Truth about Svelte by benmccann on Wednesday July 12, 2023 @12:34AM (#36690512)
adapter-static is meant for generating fully static sites. It's fundamentally not aiming to and cannot support SSR in that context. However, SSR is fully supported in adapter-node, which is well maintained.
Re:The Truth about Svelte by threatofrain on Wednesday July 12, 2023 @12:24AM (#36690460)
Infrastructure adapters are becoming table stakes for frontend frameworks.
Re:The Truth about Svelte by mcintyre1994 on Wednesday July 12, 2023 @01:18AM (#36690707)
Which other frameworks have them out of interest? Sounds like a great feature. AFAIK Next doesn’t and it’ll be interesting to see if it gets them given it’s from Vercel. When I tried Remix you had to choose your deployment when initialising a project and it didn’t look trivial to change it, but that was a while ago.
Re:The Truth about Svelte by threatofrain on Thursday July 13, 2023 @05:25PM (#36716206)
Solid & Astro.