Fix Edge-incompatible middleware; set Node runtime on Prisma/pg routes; add full Romanian Bible import + converter; import data JSON; resync RO bookKeys; stabilize /api/bible/books locale fallback; restart dev server.

This commit is contained in:
andupetcu
2025-09-20 18:01:04 +03:00
parent 500066450d
commit 88b251c100
28 changed files with 127926 additions and 175 deletions

View File

@@ -123,7 +123,7 @@ async function importFromApiBible() {
let totalVersesImported = 0
for (const book of books.slice(0, 2)) { // Limit to first 2 books for sample structure
for (const book of books.slice(0, 10)) { // Import first 10 books
console.log(`Processing ${book.name} (${book.id})...`)
const orderNum = getBookOrderNumber(book.id)
@@ -150,7 +150,7 @@ async function importFromApiBible() {
console.log(` Found ${chapters.length} chapters`)
for (const chapter of chapters.slice(0, 2)) { // Limit to first 2 chapters for sample
for (const chapter of chapters.slice(0, 5)) { // Import first 5 chapters
const chapterNum = parseChapterNumber(chapter.id)
console.log(` Processing chapter ${chapterNum}...`)
@@ -175,10 +175,10 @@ async function importFromApiBible() {
console.log(` Found ${versesResponse.data.length} verses`)
// Process only first 5 verses for sample structure
const sampleVerses = versesResponse.data.slice(0, 5)
for (let i = 0; i < sampleVerses.length; i += 5) {
const verseBatch = sampleVerses.slice(i, i + 5)
// Process all verses
const allVerses = versesResponse.data
for (let i = 0; i < allVerses.length; i += 10) {
const verseBatch = allVerses.slice(i, i + 10)
for (const verseRef of verseBatch) {
try {