-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
63 lines (62 loc) · 1.23 KB
/
next.config.js
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
const withMDX = require("@next/mdx")();
module.exports = withMDX({
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
experimental: {
mdxRs: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "pbs.twimg.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "abs.twimg.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "m.media-amazon.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "images-na.ssl-images-amazon.com",
port: "",
pathname: "/**",
},
],
},
headers() {
return [
{
source: "/images/rauchg-3d4cecf.jpg",
headers: [
{
key: "cache-control",
value: "public, max-age=31536000, immutable",
},
],
},
];
},
redirects() {
return [
{
source: "/essays/:nested*",
destination: "/",
permanent: true,
},
{
source: "/slackin/:nested*",
destination: "https://github.com/rauchg/slackin",
permanent: true,
},
];
},
});