mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-08-29 01:53:47 +08:00
chore: vercel config
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsx scripts/workflow/build-routes.ts && tsdown",
|
||||
"build:vercel": "tsx scripts/workflow/build-routes.ts && tsdown lib/vercel.ts",
|
||||
"build:vercel": "tsx scripts/workflow/build-routes.ts && tsdown lib/vercel.ts -d dist/api",
|
||||
"build:docs": "tsx scripts/workflow/build-docs.ts",
|
||||
"dev": "cross-env NODE_ENV=dev tsx watch --inspect --clear-screen=false lib/index.ts",
|
||||
"dev:cache": "cross-env NODE_ENV=production tsx watch --clear-screen=false lib/index.ts",
|
||||
|
||||
+10
-2
@@ -1,5 +1,13 @@
|
||||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"buildCommand": "pnpm build:vercel",
|
||||
"installCommand": "pnpm install",
|
||||
"outputDirectory": "dist",
|
||||
"framework": null,
|
||||
"github": { "silent": true },
|
||||
"routes": [{ "src": "/.*", "dest": "/api/vercel.ts" }]
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"destination": "/api/vercel.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user