| Hey Kevin! First of all. I am a regular listener to your podcast! Love it! Now, I am not specifically targeting SvelteKit to be fair. But the whole host of meta-frameworks like NextJS, NuxtJS etc which Vercel is pushing. These frameworks in general are too much complexity added. SSR is hard and the best way to handle all of these is to not have a server layer at all. That is just abstract the rendering/routing part and leave the rest of the server stuffs to the user. I want to simply write my Fastify/Express/Go-gin/Django app. Then add SvelteKit as my front-end with SSR support. Right now, I first write SvelteKit and then think how am I going to integrate Express and Fastify to it (for a moment let's leave non-node solutions). Trust me. If you simply leave the server out of SK and generate a simple API abstraction like `res.send(renderSKPath('/users/:id', { serverData }))`. It would have done the job. I think its difficult to express what I want to say, but in short, remove the server and keep SK as a rendering layer only. P.S. I know that there is an express adapter for SK. But that is not the point of this comment at all. |