Skip to content

Commit ab3a43d

Browse files
authored
Merge branch 'main' into release-please--branches--main--components--plugin-nextjs
2 parents a3b1c31 + 9c72690 commit ab3a43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run/headers.ts

Lines changed: 1 addition & 1 deletion
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)