Skip to content

Commit 26b0bef

Browse files
committed
fix: log url
1 parent 892ce10 commit 26b0bef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/ssrMiddleware.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const ssrMiddleware: Middleware = async (ctx, next) => {
88
return;
99
}
1010

11+
console.log('>> ' + ctx.url);
12+
1113
try {
1214
const result = await serverRender({
1315
url: ctx.url,
@@ -24,6 +26,7 @@ const ssrMiddleware: Middleware = async (ctx, next) => {
2426
} catch (e) {
2527
ctx.throw(500, e as any);
2628
}
29+
console.log('<< ' + ctx.url);
2730
};
2831

2932
export default ssrMiddleware;

0 commit comments

Comments
 (0)