From 3cefd3f061615290435cd6ba6520d09e3b4a77cb Mon Sep 17 00:00:00 2001 From: Elias Date: Thu, 26 Sep 2024 13:55:44 +0200 Subject: [PATCH] improved error logging to find the reason why vercel upload doesnt work --- src/app/api/hetzner/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/hetzner/route.ts b/src/app/api/hetzner/route.ts index 87577f9..f8d79bf 100644 --- a/src/app/api/hetzner/route.ts +++ b/src/app/api/hetzner/route.ts @@ -2,8 +2,8 @@ import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3'; import { NextResponse } from 'next/server'; export async function POST(request: Request) { + console.log('Received upload request'); try { - console.log('Received upload request'); const formData = await request.formData(); const files = formData.getAll('file') as File[];