Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
add first cron
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Oct 2, 2023
1 parent ddfd964 commit 2f068ce
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/api/cron/route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { NextResponse } from 'next/server';


export async function GET() {

return NextResponse.json({ ok: true });

}
147 changes: 147 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"crons": [{
"path": "/api/cron",
"schedule": "0 10 * * *"
}]
}

0 comments on commit 2f068ce

Please sign in to comment.