-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
58 lines (56 loc) · 1.3 KB
/
Copy pathnext.config.ts
File metadata and controls
58 lines (56 loc) · 1.3 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
import type { NextConfig } from "next";
import { withContentCollections } from "@content-collections/next";
const nextConfig: NextConfig = {
cacheComponents: true,
images: {
qualities: [10, 75],
remotePatterns: [
{
protocol: "https",
hostname: "cdn.callumflack.design",
port: "",
},
{
protocol: "https",
hostname: "cfd-media.b-cdn.net",
port: "",
},
],
},
redirects: async () => {
return [
{
source: "/blog/:slug",
destination: "/:slug",
permanent: true,
},
{
source: "/get-cleared",
destination: "/cleared",
permanent: true,
},
{
source: "/the-first-principle-website",
destination: "/the-first-principle",
permanent: true,
},
{
source: "/archive",
destination: "/work",
permanent: true,
},
{
source: "/what-i-want",
destination: "/the-work-and-team-im-after",
permanent: true,
},
{
source: "/ways-to-think-about-generative-ai",
destination: "/ways-of-seeing-generative-ai",
permanent: true,
},
];
},
};
// withContentCollections must be the outermost plugin
export default withContentCollections(nextConfig);