From 6f02d928606d107c41e4a50bdd44a85a7e5bfc4f Mon Sep 17 00:00:00 2001 From: imsyy Date: Fri, 24 Mar 2023 16:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=20Vercel=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++-- vercel.json | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 vercel.json 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": "/" + } + ] +}