fix: add missing languageDetection/autoLabeling to getAISettings fallbacks
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 31s

The error fallback and non-logged-in fallback in getAISettings were
missing languageDetection and autoLabeling fields, creating a union type
where these could be undefined — breaking the build.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 21:24:47 +02:00
parent 84c8414cd8
commit e8a3957115

View File

@@ -199,7 +199,9 @@ const getCachedAISettings = unstable_cache(
desktopNotifications: false,
anonymousAnalytics: false,
theme: 'light' as const,
fontSize: 'medium' as const
fontSize: 'medium' as const,
languageDetection: true,
autoLabeling: true,
}
}
},
@@ -232,7 +234,9 @@ export async function getAISettings(userId?: string) {
desktopNotifications: false,
anonymousAnalytics: false,
theme: 'light' as const,
fontSize: 'medium' as const
fontSize: 'medium' as const,
languageDetection: true,
autoLabeling: true,
}
}