-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.ts
75 lines (73 loc) · 1.63 KB
/
next.config.ts
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
import type { NextConfig } from "next"
const config: NextConfig = {
trailingSlash: false,
eslint: {
ignoreDuringBuilds: true
},
experimental: {
inlineCss: true
},
logging: {
fetches: {
fullUrl: true
}
},
async redirects() {
return [
{
source: "/:path*",
has: [
{
type: "host",
value: "symbolist.marcbouchenoire.com"
}
],
destination: "https://marcbouchenoire.com/projects/symbolist/:path*",
permanent: true
},
{
source: "/:path*",
has: [
{
type: "host",
value: "typometer.marcbouchenoire.com"
}
],
destination: "https://marcbouchenoire.com/projects/typometer/:path*",
permanent: true
},
{
source: "/:path*",
has: [
{
type: "host",
value: "dimmmensions.marcbouchenoire.com"
}
],
destination: "https://marcbouchenoire.com/projects/dimmmensions/:path*",
permanent: true
}
]
},
async rewrites() {
return [
{
source: "/:path*",
destination: `/:path*`
},
{
source: "/projects/symbolist/:path*",
destination: "https://marcbouchenoire-symbolist.vercel.app/:path*"
},
{
source: "/projects/typometer/:path*",
destination: "https://marcbouchenoire-typometer.vercel.app/:path*"
},
{
source: "/projects/dimmmensions/:path*",
destination: "https://marcbouchenoire-dimmmensions.vercel.app/:path*"
}
]
}
}
export default config