mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
c811b1fecc
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