Skip to content

Commit

Permalink
chore: add location header to trailing slash log (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
orinokai authored Jan 22, 2025
1 parent ff2632f commit 9c72690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const setCacheControlHeaders = (
// temporary diagnostic to evaluate number of trailing slash redirects
if (status === 308 && request.url.endsWith('/') !== nextConfig.trailingSlash) {
getLogger()
.withFields({ trailingSlash: nextConfig.trailingSlash })
.withFields({ trailingSlash: nextConfig.trailingSlash, location: headers.get('location') })
.log('NetlifyHeadersHandler.trailingSlashRedirect')
}

Expand Down

0 comments on commit 9c72690

Please sign in to comment.