Skip to content

Commit

Permalink
chore: remove obsolete next route segment config
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelex committed Dec 23, 2024
1 parent f55e219 commit 8af9a93
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/api/result/upload/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ import { service } from '@/app/lib/service';

export const dynamic = 'force-dynamic'; // defaults to auto

export const config = {
api: {
bodyParser: false,
},
};

export async function PUT(request: Request) {
const { result: formData, error: formParseError } = await withError(request.formData());

Expand All @@ -25,7 +19,7 @@ export async function PUT(request: Request) {
return Response.json({ error: 'Field "file" with result is missing' }, { status: 400 });
}

const file = formData.get('file') as File;
const file = formData.get('file') as Blob;

const resultDetails: ResultDetails = {};

Expand Down

0 comments on commit 8af9a93

Please sign in to comment.