Commit Graph
8 Commits
Author SHA1 Message Date

2026-08-13

lezi-fun acf5d40e57 ci: add Codecov bundle and test reporting 2026-08-13 13:58:46 +08:00
lezi-fun c58cefdb5a ci: add Codecov coverage reporting 2026-08-13 13:37:35 +08:00

2026-08-11

lezi-fun 59227d99a5 chore: .env is user-local env (gitignored), .env.example is the template 2026-08-11 09:19:18 +08:00
lezi-fun 962f7f67c1 feat: Cloudflare Workers deployment (OpenNext adapter)
- Add @opennextjs/cloudflare + wrangler config, open-next.config.ts,
  public/_headers, .dev.vars.example template
- package.json: cf build/preview/deploy/upload scripts
- Verified deployed: https://forumlify.roylikerebecca19930.workers.dev
  (DB read/write via outbound TCP to Postgres, R2 image upload + public
  domain access all working)
2026-08-11 09:18:29 +08:00

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