Skip to content

Commit d94449c

Browse files
committed
fix: address CR comments
1 parent c9d589b commit d94449c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/helpers/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const isNextAuthInstalled = (): boolean => {
189189
}
190190

191191
export const getCustomImageResponseHeaders = (headers: Header[]): Record<string, string> | null => {
192-
const customImageResponseHeaders = headers.find((h) => h.for.startsWith('/_next/image/'))
192+
const customImageResponseHeaders = headers.find((header) => header.for?.startsWith('/_next/image/'))
193193

194194
if (customImageResponseHeaders) {
195195
return customImageResponseHeaders?.values as Record<string, string>

0 commit comments

Comments
 (0)