-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
executable file
·85 lines (84 loc) · 1.62 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/** @type {import('next').NextConfig} */
const removeImports = require("next-remove-imports")();
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "http.cat",
},
{
protocol: "https",
hostname: "cdn.stamp.fyi",
},
{
protocol: "https",
hostname: "jbm.infura-ipfs.io",
},
{
protocol: "https",
hostname: "cdn.discordapp.com",
},
{
protocol: "https",
hostname: "guild-xyz.mypinata.cloud",
},
{
protocol: "https",
hostname: "nance.infura-ipfs.io"
}
],
},
async redirects() {
return [
{
source: "/",
destination: "/s/juicebox",
permanent: false,
has: [
{
type: "host",
value: "www.jbdao.org",
},
],
},
];
},
async rewrites() {
return [
{
source: "/edit",
has: [
{
type: "host",
value: "www.jbdao.org",
},
],
destination: "/s/juicebox/edit",
},
{
source: "/p/:slug",
has: [
{
type: "host",
value: "www.jbdao.org",
},
],
destination: "/s/juicebox/:slug",
},
{
source: "/:slug(\\d{1,})",
has: [
{
type: "host",
value: "www.jbdao.org",
},
],
destination: "/s/juicebox/:slug",
},
];
},
};
module.exports = removeImports(nextConfig);