Commit Graph
4 Commits
Author SHA1 Message Date

2026-08-10

lezi-fun d1c06741f6 fix: uploads route ignored by .gitignore, image 404s
.gitignore 'uploads/' pattern matched app/api/uploads/ too, so the
image-serving route handler was never committed. Anchor it to /uploads/
so only the runtime storage dir is ignored. Also add vercel.json.
2026-08-10 10:45:25 +08:00

2026-08-09

lezi-fun 9e72e4de8e chore: allow .env in repo, add .env.example template
- .gitignore: track .env, still ignore local overrides (.env.local)
- Add .env.example with DATABASE_URL / JWT_SECRET / PORT / HOST
2026-08-09 21:26:29 +08:00
lezi-fun 281460fb03 feat: migrate to Next.js 14 (App Router + Route Handlers)
- Replace Express server with Next.js Route Handlers (16 API routes)
- Rewrite index.html SPA as React components (feed, post, admin, modals)
- Move style.css to app/globals.css with dark/light themes intact
- Add lib/db.js, lib/auth.js (JWT), lib/api.js (client API wrapper)
- Server binds 0.0.0.0 by default; host/port configurable via config.js
- Uploads served via /api/uploads route (rewrite keeps /uploads/ URLs)
- Multi-stage dockerfile using standalone output
2026-08-09 17:02:11 +08:00
lezi-fun 2ffad8422f Add .gitignore, remove node_modules from repo 2026-08-09 16:28:32 +08:00