Skip to content

Commit d0e5754

Browse files
author
Zehee
committed
fix: make vis static fallback HTML match test expectations
- Ensure fallback HTML includes <!doctype html> and Memory Vis title - Fixes testStaticFallback on fresh clones without built static files
1 parent c2d948f commit d0e5754

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/vis/server.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function createApp(ctx: Ctx): Hono {
127127
const indexPath = path.join(staticRoot, 'index.html');
128128
const html = fs.existsSync(indexPath)
129129
? fs.readFileSync(indexPath, 'utf8')
130-
: '<h1>kimi-memory-vis</h1><p>Static files not found. Run npm run build first.</p>';
130+
: '<!doctype html><html><head><title>Memory Vis</title></head><body><h1>kimi-memory-vis</h1><p>Static files not found. Run npm run build first.</p></body></html>';
131131
return c.html(html);
132132
});
133133

0 commit comments

Comments
 (0)