Skip to content

Use SSR#8

Closed
ethmarks wants to merge 4 commits intomainfrom
ssr
Closed

Use SSR#8
ethmarks wants to merge 4 commits intomainfrom
ssr

Conversation

@ethmarks
Copy link
Owner

This PR switches to a server-side rendering approach.

Background

Initially, all logic happened at runtime on the client side. Blips shipped as a static shell and had the browser fetch the blip content data and render it. This was easy to implement, but it had terrible client-side performance.

Then, in PR #3, I switched to an SSG-and-webhook approach. All fetching and rendering logic happened at build time. Whenever a new blip was published, it would trigger a webhook and re-build the site. This was fantastic for performance, but the webhook added complexity and fragility and it introduced a delay between when a blip is published and when it appeared to viewers.

New approach

With this PR, the blips are fetched and rendered on each request via Svelte-Kit's adapter-auto. In testing, this doesn't seem to noticeably affect page load times or performance, but it removes the need for the webhook and it allows for instant content updates.

However, the downside is that it doesn't support GitHub Pages anymore. GH Pages only supports static sites, and SSR is by definition not static. For this reason, I won't be merging this PR until I'm ready to abandon GitHub Pages and switch completely to Vercel.

@vercel
Copy link

vercel bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
blips Ready Ready Preview Jan 23, 2026 3:00am

@ethmarks ethmarks mentioned this pull request Feb 4, 2026
@ethmarks
Copy link
Owner Author

ethmarks commented Feb 4, 2026

Closing this because it's superseded by #10

@ethmarks ethmarks closed this Feb 4, 2026
@ethmarks ethmarks deleted the ssr branch February 4, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant