支持 Vercel 部署

This commit is contained in:
imsyy 2023-03-24 16:24:54 +08:00
parent 1dd856fc99
commit 6f02d92860
2 changed files with 18 additions and 2 deletions

View File

@ -4,10 +4,11 @@
"description": "一个今日热榜 .", "description": "一个今日热榜 .",
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"start": "node app.js" "start": "node app.js",
"build": "node app.js"
}, },
"author": "imsyy", "author": "imsyy",
"license": "ISC", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.3.4", "axios": "^1.3.4",
"cheerio": "1.0.0-rc.12", "cheerio": "1.0.0-rc.12",

15
vercel.json Normal file
View File

@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node@2.5.10"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}