-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
86 lines (57 loc) · 1.66 KB
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
/*
Error: Invalid src prop (/logo-tether.png) on `next/image`, hostname "cryptologos.cc" is not configured under images in your `next.config.js`
*/
const nextConfig = {
// fixes wallet connect dependency issue https://docs.walletconnect.com/web3modal/nextjs/about#extra-configuration
webpack: (config) => {
config.externals.push("pino-pretty", "lokijs", "encoding");
return config;
},
images: {
domains: [
"cryptologos.cc",
"vzrcy5vcsuuocnf3.public.blob.vercel-storage.com",
"fal.media",
"owinwallet.com",
"res.cloudinary.com",
"replicate.delivery",
"replicate.com",
"t.me",
],
},
experimental: {
appDir: true,
serverComponentsExternalPackages: ['grammy'],
},
async redirects() {
return [
{
source: '/',
destination: '/kr/polygon',
permanent: true,
},
]
},
/*
async headers() {
return [
{
// Apply these headers to all routes in your application
source: '/(.*)',
headers: [
{
key: 'Access-Control-Allow-Origin',
//value: 'https://gpgpu-lac.vercel.app', // Allow requests from this origin
//value: '*', // Allow requests from this origin
//https://vienna-mania.vercel.app, http://localhost:3000
///value: 'https://vienna-mania.vercel.app, http://localhost:3000', // Allow requests from this origin
value: 'https://vienna-mania.vercel.app', // Allow requests from this origin
},
],
},
];
},
*/
};
export default nextConfig;