[SLOP(claude-opus-4-8)] fix(kitchen-sink): serve built frontend from server - #5306
Conversation
|
🚅 Deployed to the rivet-pr-5306 environment in rivet-frontend
|
Code ReviewSmall, focused change that adds built-frontend serving to the kitchen-sink example. The approach is sound; route ordering is correct so Observations: Hono path access — // current
const path = new URL(c.req.url).pathname;
const last = path.slice(path.lastIndexOf("/") + 1);
// simpler
const last = c.req.path.split("/").at(-1) ?? "";Minor, but worth fixing since this runs on every unmatched request. Extension heuristic —
Comment style — the opening block comment explains what the code does rather than why (per CLAUDE.md: do not explain what the code does when it is already obvious from reading it). The one non-obvious fact worth keeping is that // dist/ only exists in production images; dev runs skip this block.
Overall this is a clean, minimal addition. The |
c8f4673 to
051f338
Compare
051f338 to
6efb5f5
Compare
6efb5f5 to
0caa600
Compare
No description provided.