diff --git a/package.json b/package.json index 003da87..0b6a536 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..7006eec --- /dev/null +++ b/vercel.json @@ -0,0 +1,15 @@ +{ + "version": 2, + "builds": [ + { + "src": "./index.js", + "use": "@vercel/node@2.5.10" + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "/" + } + ] +}