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

@@ -2,6 +2,8 @@ import { NextResponse } from 'next/server'
import { prisma } from '@/lib/db'
import { CacheManager } from '@/lib/cache'
export const runtime = 'nodejs'
export async function GET(request: Request) {
try {
const { searchParams } = new URL(request.url)
@@ -57,4 +59,4 @@ export async function GET(request: Request) {
console.error('Chapter fetch error:', error)
return NextResponse.json({ error: 'Eroare de server' }, { status: 500 })
}
}
}