-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
109 lines (101 loc) · 3.36 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
// development
{
protocol: "http",
hostname: "localhost",
port: "3000",
},
// stage or production
{
protocol: "https",
hostname: "ipfs.io",
port: "",
pathname: "/ipfs"
}
]
},
reactStrictMode: true,
experimental: {
serverComponentsExternalPackages: ['react-bootstrap-icons'],
},
webpack: config => {
config.resolve.fallback = { fs: false, net: false, tls: false };
config.externals.push('pino-pretty', 'lokijs', 'encoding');
return config;
},
async rewrites() {
return [
{
source: '/marketplace',
destination: '/marketplace/1',
},
{
source: '/collection/:slug',
destination: '/collection/:slug/1',
},
{
source: '/account/:address',
destination: '/account/:address/token/1',
},
{
source: '/account/:address/token',
destination: '/account/:address/token/1',
},
{
source: '/account/:address/collection',
destination: '/account/:address/collection/1',
},
{
source: '/account/:address/offer_received',
destination: '/account/:address/offer_received/1',
},
{
source: '/account/:address/offer_sent',
destination: '/account/:address/offer_sent/1',
},
{
source: '/account/:address/contract',
destination: '/account/:address/contract/1',
},
{
source: '/account/:address/event',
destination: '/account/:address/event/1',
},
]
},
async redirects() {
return [
{
source: '/events',
destination: '/events/minting_now',
permanent: false
},
{
source: '/profile',
destination: '/profile/view',
permanent: false
},
]
},
env: {
DB_HOST: process.env.DB_HOST,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
PINATA_API_KEY: process.env.PINATA_API_KEY,
PINATA_API_SECRET: process.env.PINATA_API_SECRET,
PINATA_JWT: process.env.PINATA_JWT,
EMAIL_SERVER_PASSWORD: process.env.EMAIL_SERVER_PASSWORD,
EMAIL_SERVER_USER: process.env.EMAIL_SERVER_USER,
EMAIL_SERVER_HOST: process.env.EMAIL_SERVER_HOST,
EMAIL_SERVER_PORT: process.env.EMAIL_SERVER_PORT,
EMAIL_FROM: process.env.EMAIL_FROM,
NEXT_PUBLIC_PINATA_GATEWAY: process.env.NEXT_PUBLIC_PINATA_GATEWAY,
NEXT_PUBLIC_CONTRACT_BASE_URI: process.env.NEXT_PUBLIC_CONTRACT_BASE_URI,
NEXT_PUBLIC_ALCHEMY_ID: process.env.NEXT_PUBLIC_ALCHEMY_ID,
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID,
}
}
module.exports = nextConfig