-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
65 lines (63 loc) · 1.45 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
64
65
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: [
"i.scdn.co",
"is1-ssl.mzstatic.com",
"miro.medium.com",
"cms.matteing.com",
],
},
i18n: {
locales: ["en"],
defaultLocale: "en",
},
async rewrites() {
return [
{
source: "/rss",
destination: "/api/rss/getRss",
},
{
source: "/content/:path*",
destination: "https://cms.matteing.com/content/:path*",
},
];
},
async redirects() {
return [
{
source: "/resume",
destination: "https://github.com/matteing/resume/blob/main/resume.pdf",
permanent: false,
basePath: false
},
{
source: "/linkedin",
destination: "https://www.linkedin.com/in/sergiomattei/",
permanent: false,
basePath: false
},
{
source: "/freelance",
destination: "https://unfinite.notion.site/unfinite/Freelance-e4e3374b79bf4efa89b936a85dbc82d3",
permanent: false,
basePath: false
},
{
source: "/sweet",
destination: "https://55jgvbkoyhc.typeform.com/to/fDNbn5QN",
permanent: false,
basePath: false
}
]
}
};
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
module.exports = withBundleAnalyzer(nextConfig);