Build fixes: offline-safe fonts, Next.js API route type updates, TS strict errors resolved, MUI import cleanup, chat markdown wrapper, Azure OpenAI typing, caching key + chapter API id types, and misc error-logging typings.

This commit is contained in:
andupetcu
2025-09-22 17:07:31 +03:00
parent c82b3007fd
commit 98c17d69bc
26 changed files with 106 additions and 105 deletions

View File

@@ -66,6 +66,7 @@ interface SearchResult {
verseId: string
book: string
bookId: string
bookKey?: string
chapter: number
verse: number
text: string
@@ -202,7 +203,7 @@ export default function SearchPage() {
try {
const response = await fetch(`/api/bible/versions?locale=${locale}`)
const data = await response.json()
const versionList = data.versions || []
const versionList: Array<{ id: string; name: string; abbreviation: string; isDefault: boolean }> = data.versions || []
setVersions(versionList)
const defaultVersion = versionList.find(v => v.isDefault) || versionList[0]
@@ -984,4 +985,4 @@ export default function SearchPage() {
</Box>
</Box>
)
}
}