mirror of
https://github.com/LLM-Red-Team/step-free-api.git
synced 2026-01-13 07:00:39 +08:00
支持Render部署和Vercel部署方式
This commit is contained in:
27
vercel.json
Normal file
27
vercel.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"builds": [
|
||||
{
|
||||
"src": "./dist/*.html",
|
||||
"use": "@vercel/static"
|
||||
},
|
||||
{
|
||||
"src": "./dist/index.js",
|
||||
"use": "@vercel/node"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/",
|
||||
"dest": "/dist/welcome.html"
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/dist",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Credentials": "true",
|
||||
"Access-Control-Allow-Methods": "GET,OPTIONS,PATCH,DELETE,POST,PUT",
|
||||
"Access-Control-Allow-Headers": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, Content-Type, Authorization"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user