[SLOP(claude-opus-4-8)] fix(kitchen-sink): serve built frontend from server#5306
Conversation
|
Stack for rivet-dev/rivet
Get stack: |
|
🚅 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. ObservationsHono 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"). The non-obvious constraint worth keeping is that // dist/ only exists in production images; dev runs skip this block.Route ordering looks correct — static middleware is registered after all
Overall this is a clean, minimal addition. The |
c8f4673 to
051f338
Compare
051f338 to
6efb5f5
Compare
No description provided.