Migrate from Express to Astro #1

Merged
l merged 1 commit from claude/pensive-lovelace into master 2026-03-28 05:34:25 +01:00
Owner

Summary

  • Replaces the Express + Handlebars server with a fully static Astro site
  • All existing URLs preserved — the home page and all 8 social redirect routes work identically
  • Switches to bun as the package manager
  • Dockerfile updated to a modern multi-stage oven/bun:1 build (was Node 10)

Changes

  • src/pages/index.astro — port of views/index.hbs with social links data inlined
  • src/layouts/Layout.astro — port of views/layouts/main.hbs
  • src/styles/main.sass — compiled by Astro at build time (pre-built main.css removed)
  • astro.config.mjs — site config + 8 redirect routes
  • public/assets/ — replaces assets/ for static file serving

Removes: server.js, run.js, run.sh, constants.js, views/

## Summary - Replaces the Express + Handlebars server with a fully static Astro site - All existing URLs preserved — the home page and all 8 social redirect routes work identically - Switches to bun as the package manager - Dockerfile updated to a modern multi-stage `oven/bun:1` build (was Node 10) ## Changes - `src/pages/index.astro` — port of `views/index.hbs` with social links data inlined - `src/layouts/Layout.astro` — port of `views/layouts/main.hbs` - `src/styles/main.sass` — compiled by Astro at build time (pre-built `main.css` removed) - `astro.config.mjs` — site config + 8 redirect routes - `public/assets/` — replaces `assets/` for static file serving **Removes:** `server.js`, `run.js`, `run.sh`, `constants.js`, `views/`
l added 1 commit 2026-03-28 05:28:03 +01:00
Replaces the Express server entirely with a static Astro site.
The single-page link hub and all redirect routes are preserved with
no change to existing URLs or behaviour.

- src/pages/index.astro replaces views/index.hbs + Express route
- src/layouts/Layout.astro replaces views/layouts/main.hbs
- src/styles/main.sass compiled by Astro (removes pre-built main.css)
- astro.config.mjs defines the 8 social redirect routes
- public/assets/ replaces assets/ for static file serving
- package.json swapped to Astro + sass (bun as package manager)
- Dockerfile updated to multi-stage oven/bun:1 build

Removes: server.js, run.js, run.sh, constants.js, views/
l force-pushed claude/pensive-lovelace from 4d9d4387a0 to 745aaad5c4 2026-03-28 05:33:59 +01:00 Compare
l merged commit 745aaad5c4 into master 2026-03-28 05:34:25 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
clients/sor!1
No description provided.