chore: prepare v1.0.0 release

This commit is contained in:
Tom Boullay
2026-04-27 23:43:16 +02:00
parent 31c05a35fc
commit dddecbb11c
18 changed files with 123 additions and 239 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ import { classifyFileChanges } from '@/lib/diff-files'
import { getModelFolderPath } from '@/lib/model-paths'
import { ensurePreparedStagingAssets } from '@/lib/upload-staging'
import { parseStagingRequestBody } from '@/lib/upload-request'
import { getErrorMessage } from '@/lib/guards'
export const runtime = 'nodejs'
export const dynamic = 'force-dynamic'
@@ -23,7 +24,7 @@ export async function POST(req: NextRequest) {
const body: unknown = await req.json()
stagingId = parseStagingRequestBody(body).stagingId
} catch (err) {
const message = err instanceof Error ? err.message : 'Erreur inconnue'
const message = getErrorMessage(err)
return NextResponse.json({ success: false, error: message }, { status: 400 })
}
@@ -56,7 +57,7 @@ export async function POST(req: NextRequest) {
return NextResponse.json({ success: true, exists: false })
} catch (err) {
const message = err instanceof Error ? err.message : 'Erreur inconnue'
const message = getErrorMessage(err)
return NextResponse.json({ success: false, error: message }, { status: 500 })
}
}