-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
53 lines (51 loc) · 1.49 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**.googleusercontent.com',
},
],
domains: ['cdn.simplehash.com', 'gateway.ipfscdn.io', 'media.artblocks.io', '**.thirdwebcdn.com', '**.seadn.io', 'lh3.googleusercontent.com', 'i.seadn.io', 'openseauserdata.com', 'rarible.mypinata.cloud', 'media-proxy.artblocks.io', 'raw.seadn.io', 'img.reservoir.tools', 'blur.io', '0b6ff6d257685c2de8cc8e51755a0ae9.ipfscdn.io'],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
})
return config
},
async redirects() {
return [
{
source: '/profile/:address/offers',
destination: '/profile/:address/offers/ethereum',
permanent: true,
},
{
source: '/profile/:address/collected',
destination: '/profile/:address/collected/ethereum',
permanent: true,
},
{
source: '/profile/:address/bids',
destination: '/profile/:address/bids/ethereum',
permanent: true,
},
{
source: '/profile/:address/asks',
destination: '/profile/:address/asks/ethereum',
permanent: true,
},
{
source: '/profile/:address/activity',
destination: '/profile/:address/activity/ethereum',
permanent: true,
},
]
},
}
module.exports = nextConfig