Files
lobe-chat/scripts
Innei c811b1fecc ♻️ refactor(server): make Next a pure shell — (backend) routes forward to the Hono runtime (phase 2)
All 54 migrated (backend) route files become uniform fetchHonoRuntime
forwarders: dev proxies to the standalone Hono server, production loads
the vite-built apps/server dist in-process via runtime require — the
backend dependency graph no longer passes through next build. Verified:
after() semantics survive in-process dist loading (trace 201), SSE
streams through the chain, full classic-dev e2e green.

- devStartupSequence spawns the Hono dev server and sets
  LOBE_DEV_HONO_TARGET, so `bun run dev` = Hono + Next shell + Vite
- root build/build:raw run build:hono first so the dist pairs with the
  Next build
- hono-runtime client throws an actionable error when the dist is missing
- route tests move next to their api-runtime handlers
  (apps/server/src/api-runtime/__tests__/, 8 files)
- fix oidcProviderAPIHandler: restore the rejection path lost in the
  port — createNodeRequest failures surface as 500 again (regression
  test restored)
- type re-exports (version/check-user/resolve-username) stay on the
  route files for client consumers; erased at build time
2026-06-13 16:22:59 +08:00
..