Skip to content

Commit e5150af

Browse files
committed
fix: respond body
1 parent 259d6f9 commit e5150af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/ssrMiddleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const ssrMiddleware: Middleware = async (ctx, next) => {
1919
if (!isLoggedIn) {
2020
const exists = await cache.get(ctx.url);
2121
if (exists !== null) {
22-
return exists;
22+
ctx.body = exists;
23+
ctx.status = 200;
2324
}
2425
}
2526

0 commit comments

Comments
 (0)