forked from strkfarm/starkfarm-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
44 lines (43 loc) · 1.06 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
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'export',
compiler: {
removeConsole: {
exclude: ['error'],
},
},
async rewrites() {
return [
{
source: '/strk-incentives/:path*',
destination:
'https://kx58j6x5me.execute-api.us-east-1.amazonaws.com/starknet/:path*',
},
{
source: '/zklend/:path*',
destination: 'https://app.zklend.com/:path*',
},
{
source: '/jediswap/:path*',
destination: 'https://api.jediswap.xyz/:path*',
},
{
source: '/ekubo/:path*',
destination: 'https://mainnet-api.ekubo.org/:path*',
},
{
source: '/haiko/:path*',
destination: 'https://app.haiko.xyz/api/v1/:path*',
},
{
source: '/nostra/:path*',
destination: 'https://us-east-2.aws.data.mongodb-api.com/:path*',
},
{
source: '/myswap/:path*',
destination: 'https://myswap-cl-charts.s3.amazonaws.com/:path*',
},
];
},
};
export default nextConfig;