-
Notifications
You must be signed in to change notification settings - Fork 12
/
next.config.mjs
64 lines (63 loc) · 1.45 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
56
57
58
59
60
61
62
63
64
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "lastfm.freetls.fastly.net",
port: "",
pathname: "/**",
},
],
},
async redirects() {
return [
{
source: "/(gh|github|git)/:slug*",
destination: "https://github.com/vimfn/:slug*",
permanent: true,
},
{
source: "/sponsor",
destination: "https://github.com/sponsors/vimfn",
permanent: true,
},
{
source: "/(twitter|x)",
destination: "https://twitter.com/vimfnx",
permanent: true,
},
{
source: "/(linkedin|ln)",
destination: "https://www.linkedin.com/in/vimfn/",
permanent: true,
},
{
source: "/(spotify|sp)",
destination: "https://open.spotify.com/user/zfu9cur8fpnw6oc4q8vm55op6",
permanent: true,
},
{
source: "/feed.xml",
destination: "https://beta.vimfn.in/rss.xml",
permanent: true,
},
{
source: "/feed",
destination: "https://beta.vimfn.in/rss.xml",
permanent: true,
},
{
source: "/rss",
destination: "https://beta.vimfn.in/rss.xml",
permanent: true,
},
{
source: "/gpg",
destination: "https://github.com/vimfn.gpg",
permanent: true,
},
];
},
};
export default nextConfig;