We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d589b commit d94449cCopy full SHA for d94449c
plugin/src/helpers/utils.ts
@@ -189,7 +189,7 @@ export const isNextAuthInstalled = (): boolean => {
189
}
190
191
export const getCustomImageResponseHeaders = (headers: Header[]): Record<string, string> | null => {
192
- const customImageResponseHeaders = headers.find((h) => h.for.startsWith('/_next/image/'))
+ const customImageResponseHeaders = headers.find((header) => header.for?.startsWith('/_next/image/'))
193
194
if (customImageResponseHeaders) {
195
return customImageResponseHeaders?.values as Record<string, string>
0 commit comments