mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-28 01:48:51 +05:00
Rewrite api to Go
This commit is contained in:
13
vercel.json
13
vercel.json
@@ -2,17 +2,20 @@
|
||||
"version": 2,
|
||||
"builds": [
|
||||
{
|
||||
"src": "api/index.js",
|
||||
"use": "@vercel/node"
|
||||
"src": "api/index.go",
|
||||
"use": "@vercel/go",
|
||||
"config": {
|
||||
"maxDuration": 10
|
||||
}
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/api/index.js"
|
||||
"dest": "/api/index.go"
|
||||
}
|
||||
],
|
||||
"env": {
|
||||
"NODE_ENV": "production"
|
||||
"GO_VERSION": "1.21"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user