Skip to content

Commit

Permalink
feat: add vercel entrance
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Feb 29, 2024
1 parent b2aa636 commit 9169e5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
14 changes: 0 additions & 14 deletions api/vercel.js

This file was deleted.

11 changes: 11 additions & 0 deletions lib/vercel.ts
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"framework": null,
"github": { "silent": true },
"routes": [{ "src": "/.*", "dest": "/api/vercel.js" }]
"routes": [{ "src": "/.*", "dest": "/lib/vercel.ts" }]
}

0 comments on commit 9169e5f

Please sign in to comment.