diff --git a/src/app/api/refresh/route.ts b/src/app/api/refresh/route.ts new file mode 100644 index 0000000..fbcaaff --- /dev/null +++ b/src/app/api/refresh/route.ts @@ -0,0 +1,8 @@ +import { NextRequest, NextResponse } from 'next/server'; + +export default function GET(req: NextRequest) { + return NextResponse.next({ + status: 200, + statusText: 'Hello, World!' + }); +} diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..86d1ae0 --- /dev/null +++ b/vercel.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "crons": [ + { + "path": "/api/refresh", + "schedule": "0 6 * * *", + } + ] +} \ No newline at end of file