fix: handle missing Komga configuration gracefully by returning an empty array instead of an error in API routes

This commit is contained in:
Julien Froidefond
2025-10-17 08:37:08 +02:00
parent b8af5e2468
commit bf94c29bc6
6 changed files with 418 additions and 784 deletions

View File

@@ -17,25 +17,25 @@
"@prisma/client": "^6.17.1",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dialog": "1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-progress": "^1.1.2",
"@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-slot": "1.0.2",
"@radix-ui/react-toast": "1.1.5",
"@radix-ui/react-slot": "1.2.3",
"@radix-ui/react-toast": "1.2.15",
"@types/bcryptjs": "^3.0.0",
"bcryptjs": "^3.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^10.18.0",
"framer-motion": "^12.23.24",
"i18next": "^24.2.2",
"i18next-browser-languagedetector": "^8.0.4",
"lucide-react": "^0.487.0",
"next": "15.2.0",
"next-auth": "5.0.0-beta.29",
"next-themes": "0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-i18next": "^15.4.1",
"react-zoom-pan-pinch": "^3.7.0",
"sharp": "0.33.2",
@@ -46,8 +46,8 @@
},
"devDependencies": {
"@types/node": "24.7.2",
"@types/react": "18.2.64",
"@types/react-dom": "18.2.21",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.2",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "6.21.0",
"autoprefixer": "10.4.17",