Created
May 25, 2019 14:19
-
-
Save KameronKales/7840e4f3d9026e2d6c30c99611aa9496 to your computer and use it in GitHub Desktop.
Example now.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Example", | |
"version": 2, | |
"regions": ["iad1", "cle1"], | |
"alias": "api.example.me", | |
"builds": [{ | |
"src": "api/node/*.js", | |
"use": "@now/node" | |
}, | |
{ | |
"src": "api/python/*.py", | |
"use": "@now/python" | |
} | |
], | |
"routes": [{ | |
"src": "/user(?<team_id>[^/]*)", | |
"headers": { | |
"Access-Control-Allow-Origin": "*" | |
}, | |
"methods": ["GET"], | |
"dest": "/api/node/user.js" | |
}, | |
{ | |
"src": "/ip", | |
"headers": { | |
"Access-Control-Allow-Origin": "*" | |
}, | |
"methods": ["GET"], | |
"dest": "/api/node/ip.js" | |
}, | |
{ | |
"src": "/stream", | |
"headers": { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "POST", | |
"Access-Control-Allow-Headers": "Content-Type, Authorization" | |
}, | |
"methods": ["POST", "OPTIONS"], | |
"dest": "/api/node/stream.js" | |
}, | |
{ | |
"src": "/", | |
"dest": "/404.html", | |
"status": 404 | |
}, | |
{ | |
"src": "/test", | |
"headers": { | |
"Access-Control-Allow-Origin": "*" | |
}, | |
"methods": ["GET"], | |
"dest": "/api/python/test.py" | |
}, | |
{ | |
"src": "/email", | |
"methods": ["POST"], | |
"dest": "/api/node/email.js" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment