forked from withtally/tally-zero
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
28 lines (26 loc) · 824 Bytes
/
next.config.mjs
File metadata and controls
28 lines (26 loc) · 824 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
trailingSlash: true,
images: {
unoptimized: true,
domains: ["placehold.co", "www.tally.xyz", "raw.githubusercontent.com"],
},
webpack: (config) => {
// Alias "false" désactive le bundling de certains paquets côté client.
config.resolve.alias = {
...(config.resolve.alias || {}),
"@coinbase/wallet-sdk": false,
"@walletconnect/ethereum-provider": false,
"@metamask/sdk": false,
"@safe-global/safe-apps-sdk": false,
"@safe-global/safe-apps-provider": false,
"@base-org/account": false,
};
return config;
},
};
import withBundleAnalyzer from "@next/bundle-analyzer";
export default process.env.ANALYZE === "true"
? withBundleAnalyzer(nextConfig)
: nextConfig;