mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-27 17:38:51 +05:00
Update 3 files
- /api/index.js - /src/index.js - /vercel.json
This commit is contained in:
39
vercel.json
39
vercel.json
@@ -2,50 +2,17 @@
|
||||
"version": 2,
|
||||
"builds": [
|
||||
{
|
||||
"src": "src/index.js",
|
||||
"src": "api/index.js",
|
||||
"use": "@vercel/node"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/api-docs/(.*)",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
|
||||
},
|
||||
"dest": "/src/index.js"
|
||||
},
|
||||
{
|
||||
"src": "/movies/(.*)",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
|
||||
},
|
||||
"dest": "/src/index.js"
|
||||
},
|
||||
{
|
||||
"src": "/health",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
|
||||
},
|
||||
"dest": "/src/index.js"
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
|
||||
},
|
||||
"dest": "/src/index.js"
|
||||
"dest": "/api/index.js"
|
||||
}
|
||||
],
|
||||
"env": {
|
||||
"NODE_ENV": "production",
|
||||
"TMDB_ACCESS_TOKEN": "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkOWRlZTY5ZjYzNzYzOGU2MjY5OGZhZGY0ZjhhYTNkYyIsInN1YiI6IjY1OTVkNmM5ODY5ZTc1NzJmOTY1MjZiZiIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.Wd_tBYGkAoGPVHq3A5DwV1iLs_eGvH3RRz86ghJTmU8"
|
||||
"NODE_ENV": "production"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user