-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvercel.json
84 lines (84 loc) · 2.03 KB
/
vercel.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"version": 2,
"scope": "alheimsins",
"env": {
"PDF_SERVICE_URL": "https://pdf.louie.alheimsins.net/api/generate/pdf",
"MONGODB_CONNECTION": "@louie-db-connection-demo",
"MONGODB_TJOMMI_COLLECTION": "tjommi",
"MONGODB_LOGS_COLLECTION": "logs",
"MONGODB_NAME": "louie",
"SENDGRID_SECRET": "@louie-sendgrid-secret-demo",
"AUTH_PUBLIC_CERT_URL": "https://www.googleapis.com/oauth2/v1/certs",
"AUTH_ISSUER": "https://accounts.google.com",
"AUTH_CLIENT_ID": "@louie-auth-client-id"
},
"builds": [
{
"src": "/*.md",
"use": "@now/md"
},
{
"src": "/api/*.js",
"use": "@now/node"
},
{
"src": "/api/graphql/*.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/(.*)",
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "Accept, Access-Control-Request-Headers, Access-Control-Request-Method, Authorization, Content-Type, Last-Modified, Origin, X-FusionAuth-TenantId, X-Requested-With"
},
"continue": true
},
{
"src": "/api/graphql",
"dest": "/api/graphql/index.js"
},
{
"src": "/(.*)",
"dest": "/api/options.js",
"methods": ["OPTIONS"]
},
{
"src": "/api/groups",
"dest": "/api/get-groups.js"
},
{
"src": "/api/students",
"dest": "/api/get-students.js"
},
{
"src": "/api/students/(?<username>[^/]*)/documents",
"dest": "/api/get-documents.js?username=$1"
},
{
"src": "/api/students/(.*)",
"dest": "/api/get-student.js?username=$1"
},
{
"src": "/api/documents",
"dest": "/api/get-documents.js"
},
{
"src": "/api/documents/generate",
"dest": "/api/document-generate.js"
},
{
"src": "/api/documents/generate/base64",
"dest": "/api/document-generate-base64.js"
},
{
"src": "/api/documents/send",
"dest": "/api/document-send.js"
},
{
"src": "/",
"dest": "/README.html"
}
]
}