|
|
|
|
|
by benoror
1522 days ago
|
|
Kudos! Sounds like a novel concept for newer trends gravitating back again towards SSR at "The Edge"© I remember using typicode/lowdb in a past life and wondering why it had to have an ad-hoc ORM-like API when good ol' data structures would do just fine? Nothing against Svelte (actually the opposite), but maybe showcasing a simplified code snippet in the landing page and make it more framework-agnostic might draw more brains On the other hand, there might be a chance to showcase specific examples of more trending SSR frameworks such as Remix and Next.js. As far as I can tell direct DB access might make more sense on the server-side (LoaderFunction & getServerSideProps respectively) Great craft! |
|
The DB access works fine on both places, I use it from svelte kit load function without problems. I haven't played with authenticated SSR, I'll make sure to include that in the samples.