-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnext.config.js
54 lines (54 loc) · 1012 Bytes
/
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
module.exports = {
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
webpack: function (config) {
config.module.rules.push({
test: /\.md$/,
use: "raw-loader",
});
config.module.rules.push({
test: /\.svg$/,
// issuer: {
// test: /\.(js|ts)x?$/,
// },
use: ["@svgr/webpack"],
});
return config;
},
i18n: {
locales: ["zh-CN", "en-US"],
defaultLocale: "zh-CN",
},
async redirects() {
return [
{
source: "/s/twitter",
destination: "https://twitter.com/rea1DonandTrump",
permanent: true,
},
{
source: "/s/pixiv",
destination: "https://www.pixiv.net/en/users/35572742",
permanent: true,
},
{
source: "/rss",
destination: "https://rene.wang/rss/feed.xml",
permanent: false,
},
];
},
};