Created
November 18, 2019 15:58
-
-
Save FrediBach/d0aa7b8e9e67a671d6e7baf49e5f0663 to your computer and use it in GitHub Desktop.
Full now.json
This file contains hidden or 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
| { | |
| "version": 2, | |
| "name": "fakeql", | |
| "alias": ["fakeql.com", "www.fakeql.com"], | |
| "env": { | |
| "DB_USER": "@db-user", | |
| "DB_PASS": "@db-pass" | |
| }, | |
| "regions": [ | |
| "cdg1" | |
| ], | |
| "builds": [ | |
| { | |
| "src": "api/extend.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/deploy.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/rest.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/graphql.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/status.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "next.config.js", | |
| "use": "@now/next" | |
| }, | |
| { | |
| "src": "api/envtest.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/hashesmeta.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/placeholder.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/test.js", | |
| "use": "@now/node" | |
| }, | |
| { | |
| "src": "api/upload.js", | |
| "use": "@now/node" | |
| } | |
| ], | |
| "routes": [ | |
| { | |
| "src": "/rest/(?<hash>[^/]*)/(?<type>[^/]*)/(?<id>[^/]*)/(?<related>[^/]*)", | |
| "dest": "/api/rest.js?hash=$hash&type=$type&id=$id&related=$related", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/rest/(?<hash>[^/]*)/(?<type>[^/]*)/(?<id>[^/]*)", | |
| "dest": "/api/rest.js?hash=$hash&type=$type&id=$id", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/rest/(?<hash>[^/]*)/(?<type>[^/]*)", | |
| "dest": "/api/rest.js?hash=$hash&type=$type", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/rest/(?<hash>[^/]*)", | |
| "dest": "/api/rest.js?hash=$hash", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/test/(?<hash>[^/]*)", | |
| "dest": "/api/test.js?hash=$hash", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/upload", | |
| "dest": "/api/upload.js", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/graphql/external", | |
| "dest": "/api/graphql.js", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/graphql/(?<hash>[^/]*)", | |
| "dest": "/api/graphql.js?hash=$hash", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/fragilegraphql/(?<hash>[^/]*)", | |
| "dest": "/api/graphql.js?hash=$hash&fragile=yes", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/placeholder/(?<width>[^/]*)/(?<height>[^/]*)/(?<hash>[^/]*)", | |
| "dest": "/api/placeholder.js?width=$width&height=$height&hash=$hash", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "GET", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": "/fragileplaceholder/(?<width>[^/]*)/(?<height>[^/]*)/(?<hash>[^/]*)", | |
| "dest": "/api/placeholder.js?width=$width&height=$height&hash=$hash&fragile=yes", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "GET", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| }, | |
| { | |
| "src": ".*", | |
| "headers": { | |
| "Access-Control-Allow-Origin": "*", | |
| "Access-Control-Allow-Methods": "DELETE, POST, GET, OPTIONS", | |
| "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment