forked from vsusini/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
88 lines (83 loc) · 2.03 KB
/
Copy pathnext.config.js
File metadata and controls
88 lines (83 loc) · 2.03 KB
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
/** @type {import('next').NextConfig} */
module.exports = (phase, { defaultConfig }) => {
return {
...defaultConfig,
async redirects() {
return [
{
source: '/genesis',
destination: '/trade',
permanent: true,
},
{
source: '/my_dashboard',
destination: '/profile',
permanent: true,
},
];
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'raw.githubusercontent.com',
pathname: '/solana-labs/token-list/main/assets/mainnet/**',
},
{
protocol: 'https',
hostname: 'metadata.jito.network',
pathname: '/token/**',
},
{
protocol: 'https',
hostname: 'static.jup.ag',
pathname: '/jlp/**',
},
{
protocol: 'https',
hostname: 'arweave.net',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'ipfs.io',
pathname: '/ipfs/QmQr3Fz4h1etNsF7oLGMRHiCzhB5y9a7GjyodnF7zLHK1g',
},
{
protocol: 'https',
hostname: 'gateway.irys.xyz',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'www.sns.id',
pathname: '/token/image.png',
},
{
protocol: 'https',
hostname: 'metadata.drift.foundation',
pathname: '/drift.png',
},
],
},
webpack: (config) => {
config.resolve = {
...config.resolve,
fallback: {
fs: false,
path: false,
os: false,
},
};
return config;
},
env: {
KV_URL: process.env.KV_URL,
KV_REST_API_READ_ONLY_TOKEN: process.env.KV_REST_API_READ_ONLY_TOKEN,
KV_REST_API_TOKEN: process.env.KV_REST_API_TOKEN,
KV_REST_API_URL: process.env.KV_REST_API_URL,
SUPABASE_URL: process.env.SUPABASE_URL,
SUPABASE_ANON_KEY: process.env.SUPABASE_ANON_KEY,
},
};
};