mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 10:38:03 +08:00
chore: rename now to vercel (#9791)
This commit is contained in:
14
api/vercel.js
Normal file
14
api/vercel.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const path = require('path');
|
||||
const moduleAlias = require('module-alias');
|
||||
moduleAlias.addAlias('@', path.join(__dirname, '../lib'));
|
||||
|
||||
const config = require('../lib/config');
|
||||
config.set({
|
||||
NO_LOGFILES: true,
|
||||
});
|
||||
|
||||
const app = require('../lib/app');
|
||||
|
||||
module.exports = (req, res) => {
|
||||
app.callback()(req, res);
|
||||
};
|
||||
Reference in New Issue
Block a user