-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
55 lines (54 loc) · 1.6 KB
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
logging: {
fetches: {
fullUrl: true,
},
},
experimental: {
ppr: true,
},
typescript: {
ignoreBuildErrors: true,
},
async rewrites() {
return {
beforeFiles: [
// These rewrites are checked after headers/redirects
// and before all files including _next/public files which
// allows overriding page files
// {
// source: "/",
// destination: "/explore/boston",
// // has: [{ type: 'query', key: 'overrideMe' }],
// },
{
source: "/foobar/explore/:hub",
destination: "/foobar/explore/:hub/index/index/0/index",
// has: [{ type: 'query', key: 'overrideMe' }],
},
{
source: "/foobar/explore/:hub/:pt",
destination: "/foobar/explore/:hub/:pt/index/0/index",
// has: [{ type: 'query', key: 'overrideMe' }],
},
{
source: "/foobar/explore/:hub/:pt/:t3",
destination: "/foobar/explore/:hub/:pt/:t3/0/index",
// has: [{ type: 'query', key: 'overrideMe' }],
},
{
source: "/foobar/explore/:hub/:pt/:t3/:distance",
destination: "/foobar/explore/:hub/:pt/:t3/:distance/index",
// has: [{ type: 'query', key: 'overrideMe' }],
},
{
source: "/foobar/explore/:hub/:pt/:t3/:distance/:pg",
destination: "/foobar/explore/:hub/:pt/:t3/:distance/:pg",
// has: [{ type: 'query', key: 'overrideMe' }],
},
],
};
},
};
export default nextConfig;