-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
69 lines (66 loc) · 1.37 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
66
67
68
69
/** @type {import('next').NextConfig} */
const withMDX = require("@next/mdx")();
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**.myqcloud.com",
},
{
protocol: "https",
hostname: "img.foreverblog.cn",
},
{
protocol: "http",
hostname: "cdn-hw-static2.shanhutech.cn",
},
{
protocol: "https",
hostname: "api-render.wp-boke.work",
},
{
protocol: "https",
hostname: "images.pexels.com",
},
{
protocol: "https",
hostname: "github.githubassets.com",
},
],
},
async rewrites() {
return [
{
source: "/sitemap",
destination: "/api/sitemap",
},
{
source: "/sitemap.xml",
destination: "/api/sitemap",
},
{
source: "/dead-chain",
destination: "/api/dead-chain",
},
{
source: "/dead-chain.xml",
destination: "/api/dead-chain",
},
{
source: "/rss",
destination: "/api/rss",
},
{
source: "/rss.xml",
destination: "/api/rss",
},
{
source: "/js/:path*",
destination:
"https://wp-1302605407.cos.ap-beijing.myqcloud.com/js/:path*",
},
];
},
};
module.exports = withMDX(nextConfig);