4 ms·
SPAs are a lot of work to get right, if you want to stay within JS, node/express/postgres and Pug/html/css(with some sprinkled JS) would be faster and simpler I
by Scarbutt 6y ago
SPAs are a lot of work to get right, if you want to stay within JS, node/express/postgres and Pug/html/css(with some sprinkled JS) would be faster and simpler IMO. You can still use Firebase's auth feature from the server.
- pier25 6y ago> SPAs are a lot of work to get right I agree. It's trivial to render a component based on a route change but there are so many little problems and moving pieces after that. I've been doing SPAs for 5-6 years and for my current project I've moved to SSR + hydration with Svelte.
- el_dev_hell 6y agoWhat are you using for SSR with Svelte?
- pier25 6y agoI'm using Cloudflare Workers but I made a little demo with Node and Fastify here: https://github.com/PierBover/svelte-ssr-example https://github.com/PierBover/svelte-ssr-example