chore: update configuration and improve backup service handling

- Added root path configuration for turbopack in next.config.ts.
- Updated build script in package.json to include Prisma generation.
- Changed backup service methods to use synchronous config retrieval where appropriate, improving performance and avoiding async issues.
- Ensured dynamic rendering in layout.tsx for better page performance.
This commit is contained in:
Julien Froidefond
2025-10-31 12:11:19 +01:00
parent 5d1239c4de
commit e4e49df60b
9 changed files with 41 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ export async function GET(request: NextRequest) {
console.log('🔄 API GET /api/backups called');
// Test de la configuration d'abord
const config = backupService.getConfig();
const config = await backupService.getConfig();
console.log('✅ Config loaded:', config);
// Test du scheduler
@@ -111,7 +111,7 @@ export async function POST(request: NextRequest) {
return NextResponse.json({
success: true,
message: 'Configuration updated',
data: backupService.getConfig(),
data: await backupService.getConfig(),
});
case 'scheduler':