We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ccbd69 commit 5db1af3Copy full SHA for 5db1af3
1 file changed
api-gateway/src/app.ts
@@ -18,7 +18,12 @@ const frontendProxy = createProxyMiddleware({
18
});
19
20
const isPageRequest = (req: any) => {
21
- return req.method === 'GET' && req.headers.accept?.includes('text/html');
+ 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
+ );
27
};
28
29
app.use(
0 commit comments