mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
feat: move vercel entrance to api
This commit is contained in:
11
api/vercel.ts
Normal file
11
api/vercel.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { handle } from 'hono/vercel';
|
||||
import app from '@/app';
|
||||
import logger from '@/utils/logger';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
logger.info(`🎉 RSSHub is running! Cheers!`);
|
||||
logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/support');
|
||||
|
||||
export const GET = handle(app);
|
||||
export const POST = handle(app);
|
||||
Reference in New Issue
Block a user