This repository was archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnow.json
More file actions
106 lines (106 loc) · 2.63 KB
/
now.json
File metadata and controls
106 lines (106 loc) · 2.63 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"version": 2,
"regions": ["bru1"],
"scope": "derkonzert",
"env": {
"JWT_SECRET": "@dk3-jwt-secret",
"SENDGRID_API_KEY": "@dki-sendgrid-api",
"MONGODB_URI": "@dk3-mongodb-uri",
"SENTRY_DSN": "@dk3-sentry-dsn"
},
"build": {
"env": {
"SENTRY_DSN_FRONTEND": "@dk3-sentry-dsn-frontend"
}
},
"builds": [
{
"src": "services/social-cards/card.js",
"use": "@now/node",
"config": { "maxLambdaSize": "42mb" }
},
{
"src": "next.config.js",
"use": "@now/next"
}
],
"routes": [
{
"src": "/cron",
"methods": ["GET"],
"dest": "/api/cron"
},
{
"src": "/api",
"methods": ["POST"],
"dest": "/api/graphql"
},
{
"src": "/webcal/(.*).ics$",
"dest": "/api/webcal?token=$1"
},
{
"src": "/social-card/(.*).png$",
"methods": ["GET"],
"dest": "/services/social-cards/card.js?path=$1"
},
{
"src": "/account/setup/(?<step>.*)",
"dest": "/account/setup?step=$step",
"headers": {
"Strict-Transport-Security": "max-age=63072000",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block"
}
},
{
"src": "/event/(.)*-(?<eventId>.*)$",
"methods": ["GET"],
"dest": "event?eventId=$eventId",
"headers": {
"Strict-Transport-Security": "max-age=63072000",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block"
}
},
{
"src": "/event-card/(.)*-(?<eventId>.*)$",
"methods": ["GET"],
"dest": "event-card?eventId=$eventId",
"headers": {
"Strict-Transport-Security": "max-age=63072000",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block"
}
},
{
"src": "/update-event/(?<eventId>.*)$",
"methods": ["GET"],
"dest": "update-event?eventId=$eventId",
"headers": {
"Strict-Transport-Security": "max-age=63072000",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block"
}
},
{
"src": "/static/(.*)",
"dest": "frontend/static/$1",
"headers": {
"Strict-Transport-Security": "max-age=63072000",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block"
}
},
{
"src": "/_next/static/.*",
"headers": { "Cache-Control": "max-age=31556926" },
"continue": true
}
]
}