Compare commits

...

2 Commits

Author SHA1 Message Date
taranvohra 11e6f22919 log all header 2025-03-07 19:19:26 +05:30
taranvohra 59a0e2b7fa add log 2025-03-07 19:07:47 +05:30
+4
View File
@@ -171,6 +171,10 @@ function serveErrorResponse(error: Error) {
* URL is taken from the pathname.
*/
function getSiteURLFromRequest(request: NextRequest): URLWithMode | null {
request.headers.forEach((value, key) => {
console.log('header', { key, value });
});
const xGitbookUrl = request.headers.get('x-gitbook-url');
if (xGitbookUrl) {
return {