Skip to content

Commit 3cea312

Browse files
feat: Add Supabase Activity Scheduler workflow and backend API endpoint
1 parent 4b69b0d commit 3cea312

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/ping.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# .github/workflows/supabase-activity-scheduler.yml
2+
3+
name: Supabase Activity Scheduler
4+
5+
on:
6+
schedule:
7+
- cron: "0 0 * * *" # Runs at 00:00 every day
8+
workflow_dispatch:
9+
10+
jobs:
11+
send-http-request:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Send HTTP Request
16+
run: curl -X GET https://leetcode-journal.vercel.app/api/etc/supabase-activity-scheduler
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { NextResponse } from 'next/server';
2+
3+
export async function GET() {
4+
return NextResponse.json({
5+
message: 'Backend API service is healthy',
6+
status: 'healthy',
7+
timestamp: new Date().toISOString()
8+
}, { status: 200 });
9+
}

0 commit comments

Comments
 (0)