feat: 支持 Vercel 部署

This commit is contained in:
imsyy
2024-06-07 16:03:22 +08:00
parent 11addd20ca
commit 14bc5a1dce
9 changed files with 76 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "dailyhot-api",
"version": "2.0.0-rc.5",
"version": "2.0.0",
"description": "An Api on Today's Hot list",
"keywords": [
"API",
@@ -31,8 +31,8 @@
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
"dev": "tsx watch --no-cache src/index.ts",
"dev:cache": "tsx watch src/index.ts",
"dev": "cross-env NODE_ENV=development tsx watch --no-cache src/index.ts",
"dev:cache": "cross-env NODE_ENV=development tsx watch src/index.ts",
"build": "tsc --project tsconfig.json",
"start": "tsx src/index.ts"
},
@@ -56,6 +56,7 @@
"@types/node": "^20.14.1",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"prettier": "^3.3.0",
"tsx": "^3.14.0",