This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
77 lines (74 loc) · 2.42 KB
/
now.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
{
"version": 2,
"name": "ssr-react-wp",
"builds": [
{ "src": "next.config.js", "use": "@now/next" }
],
"build": {
"env": {
"API_BASE": "https://ssrwp-cms.kbhq.no"
}
},
"routes": [
{ "src": "/static/(.*)", "dest": "/static/($1)" },
{ "src": "/_next/static/(?:[^/]+/pages|chunks|runtime)/.+", "headers": { "cache-control": "immutable" } },
{
"src": "^/service-worker.js$",
"dest": "/_next/static/service-worker.js",
"headers": {
"cache-control": "public, max-age=43200, immutable",
"Service-Worker-Allowed": "/"
}
},
{ "src": "/robots.txt", "dest": "/static/robots.txt" },
{ "src": "/sitemap.xml", "dest": "/static/sitemap.xml" },
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/pl",
"dest": "/?lang=pl"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/pl/posty/(?<slug>[^/]+)",
"dest": "/?lang=pl&type=post&slug=$slug"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/pl/(?<slug>[^/]+)",
"dest": "/?lang=pl&slug=$slug"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/pl/(?<parent>[^/]+)/(?<slug>[^/]+)",
"dest": "/?lang=pl&parent=$parent&slug=$slug"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/_preview/(?<type>[^/]+)/(?<id>[^/]+)/(?<nonce>[^/]+)/(?<image>[^/]+)",
"dest": "/?preview=true&type=$type&id=$id&nonce=$nonce&image=$image"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/news/(?<slug>[^/]+)",
"dest": "/?slug=$slug&type=post"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/(?<slug>[^/]+)",
"dest": "/?slug=$slug"
},
{
"headers": { "permalink": "true" },
"methods": ["GET"],
"src": "/(?<parent>[^/]+)/(?<slug>[^/]+)",
"dest": "/?parent=$parent&slug=$slug"
}
]
}