feat: WhatsApp notification helper + phase 4 migration (recheck_round, WhatsApp settings)

This commit is contained in:
2026-07-11 18:43:57 +08:00
parent e631d04aba
commit b6845f5bb5
4 changed files with 116 additions and 1 deletions
+6 -1
View File
@@ -3,7 +3,12 @@ export const dynamic = 'force-dynamic'
import { NextRequest, NextResponse } from 'next/server'
import { createClient } from '@/lib/supabase/server'
const ALLOWED_KEYS = ['ANTHROPIC_API_KEY', 'VOYAGE_API_KEY'] as const
const ALLOWED_KEYS = [
'ANTHROPIC_API_KEY',
'VOYAGE_API_KEY',
'META_WHATSAPP_PHONE_NUMBER_ID',
'META_WHATSAPP_ACCESS_TOKEN',
] as const
type SettingKey = typeof ALLOWED_KEYS[number]
async function requireAdmin(supabase: Awaited<ReturnType<typeof createClient>>) {