feat: split cron into import and mailing jobs
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
export function ApiResponse(status: number, message: string) {
|
||||
const response = new Response(message, { status });
|
||||
const response = new NextResponse(message, { status });
|
||||
response.headers.set('Access-Control-Allow-Origin', process.env.HOME_URL!);
|
||||
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user