feat: use more default values

This commit is contained in:
Riccardo Senica
2025-01-21 05:36:43 +00:00
parent 26cfc526d1
commit 6589e8a815
4 changed files with 13 additions and 10 deletions

View File

@@ -4,6 +4,10 @@ import { NextResponse } from 'next/server';
export async function POST(req: Request) {
try {
if(!process.env.API_KEY){
throw new Error('API KEY environment variable is not set')
}
const body = await req.json();
const result = RequestSchema.safeParse(body);