Skip to content

Commit 5db1af3

Browse files
committed
fix
1 parent 7ccbd69 commit 5db1af3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

api-gateway/src/app.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ const frontendProxy = createProxyMiddleware({
1818
});
1919

2020
const isPageRequest = (req: any) => {
21-
return req.method === 'GET' && req.headers.accept?.includes('text/html');
21+
return (
22+
(req.method === 'GET' && req.headers.accept?.includes('text/html')) ||
23+
req.headers['rsc'] ||
24+
req.headers['next-router-prefetch'] ||
25+
req.headers['next-router-state-tree']
26+
);
2227
};
2328

2429
app.use(

0 commit comments

Comments
 (0)