Rebuild blog on TanStack Start, Drizzle & Better Auth#4
Open
Sam-Apostel wants to merge 1 commit into
Open
Conversation
Replace the Next.js + Xata blog with a fresh foundation: - TanStack Start (Vite, file-based routing, server functions) + Nitro node-server output for Railway - PostgreSQL via Drizzle ORM; schema for posts, projects, releases and reading list, plus Better Auth tables; migrations + seed script - Better Auth (email/password, closed signups) guarding an /admin area - Three site "modes" (software / lifestyle / hardware) that re-theme the whole site via CSS variables, persisted in a cookie and applied at SSR - Markdown post editor with live preview - Reading list, projects and an aggregated releases feed - A documented release-notes standard with an authenticated ingestion endpoint (/api/releases) so projects can report what they ship - OG image generation (Satori + resvg-wasm), RSS feed - Railway config, README and .env.example
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lays the foundation for the rebuilt
sams.land/sam.apostel.be, replacing the Next.js + Xata app with a fresh stack ready for Railway.Stack
node-serverbuild for Railway/adminWhat's here
docs/release-notes-standard.md) with an authenticated ingestion endpointPOST /api/releases, so every project can report what it ships. Includes drop-in clients (curl, GitHub Actions, Node).Data model (
src/db/schema.ts)post,project,release,reading_item, tagged bymode, plus the Better Auth tables. Ready to receive the existing blog/projects from a database export later.Verified locally
Against a real Postgres + the production build (
.output/server/index.mjs):/adminredirects unauthenticated →/login, authed → 200POST /api/releases→ 201 with bearer token, 401 withouttsc --noEmitclean,npm run buildsucceedsFollow-ups
Deploy notes
railway.jsonbuilds withnpm run buildand starts withnpm run db:migrate && npm run start. Add a Postgres plugin and the env vars from.env.example, then runnpm run db:seedonce to create the owner account.https://claude.ai/code/session_01B8rbrwexvi1sEFiq8QqwFo
Generated by Claude Code