mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 13:14:55 +08:00
支持 Vercel 部署
This commit is contained in:
@@ -4,10 +4,11 @@
|
||||
"description": "一个今日热榜 .",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"start": "node app.js"
|
||||
"start": "node app.js",
|
||||
"build": "node app.js"
|
||||
},
|
||||
"author": "imsyy",
|
||||
"license": "ISC",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"axios": "^1.3.4",
|
||||
"cheerio": "1.0.0-rc.12",
|
||||
|
||||
15
vercel.json
Normal file
15
vercel.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 2,
|
||||
"builds": [
|
||||
{
|
||||
"src": "./index.js",
|
||||
"use": "@vercel/node@2.5.10"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user