支持 Vercel 部署
This commit is contained in:
parent
1dd856fc99
commit
6f02d92860
@ -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": "/"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user