-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathnext.config.js
39 lines (37 loc) · 996 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: true,
rewrites: async () => {
return [
{
source: "/nodes/:chainID/:path*",
destination: "/api/proxy",
},
];
},
transpilePackages:
process.env.NODE_ENV === "test"
? [
"@vercel/analytics",
"@evmos/provider",
"@evmos/transactions",
"@evmos/eip712",
"@evmos/proto",
"@buf/cosmos_cosmos-sdk.bufbuild_es",
"@buf/evmos_evmos.bufbuild_es",
"@buf/cosmos_ibc.bufbuild_es",
"wagmi",
"@tanstack/query-sync-storage-persister",
"@tanstack/react-query",
"@tanstack/query-core",
"@tanstack/react-query-persist-client",
"@tanstack/query-persist-client-core",
"@wagmi/core",
"@wagmi/connectors",
"viem",
"abitype",
"uuid",
]
: [],
};
module.exports = nextConfig;