-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
51 lines (48 loc) · 1.77 KB
/
next.config.mjs
File metadata and controls
51 lines (48 loc) · 1.77 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
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
typescript: {
// Warning: This allows production builds to successfully complete even if
// your project has type errors.
ignoreBuildErrors: true,
},
images: {
domains: ["lh3.googleusercontent.com"],
},
// Exclude template folders from build
pageExtensions: ['tsx', 'ts', 'jsx', 'js'],
transpilePackages: ["@worldcoin/idkit"],
webpack: (config, { isServer }) => {
// Suppress optional peer dependency warnings from wagmi connectors
// These connector packages (@metamask/sdk, porto, @walletconnect/ethereum-provider, etc.)
// are optional - wagmi/rainbowkit still work without them for basic usage.
config.resolve = config.resolve || {};
config.resolve.fallback = {
...config.resolve.fallback,
"@metamask/sdk": false,
"porto": false,
"porto/internal": false,
"@safe-global/safe-apps-sdk": false,
"@safe-global/safe-apps-provider": false,
"@walletconnect/ethereum-provider": false,
"@base-org/account": false,
"@coinbase/wallet-sdk": false,
};
// Exclude template folders from compilation
config.module = config.module || {};
config.module.rules = config.module.rules || [];
config.module.rules.push({
test: /\.tsx?$/,
exclude: [
/cre-templates-main/,
/PrivaCRE\/my-workflow/,
],
});
return config;
},
};
export default nextConfig;