Skip to content

Commit 9c72690

Browse files
authored
chore: add location header to trailing slash log (#2745)
1 parent ff2632f commit 9c72690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run/headers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export const setCacheControlHeaders = (
238238
// temporary diagnostic to evaluate number of trailing slash redirects
239239
if (status === 308 && request.url.endsWith('/') !== nextConfig.trailingSlash) {
240240
getLogger()
241-
.withFields({ trailingSlash: nextConfig.trailingSlash })
241+
.withFields({ trailingSlash: nextConfig.trailingSlash, location: headers.get('location') })
242242
.log('NetlifyHeadersHandler.trailingSlashRedirect')
243243
}
244244

0 commit comments

Comments
 (0)