forked from ZyntariHQ/Invoisio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
34 lines (31 loc) · 1.12 KB
/
Copy pathnext.config.mjs
File metadata and controls
34 lines (31 loc) · 1.12 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
import path from 'path'
/** @type {import('next').NextConfig} */
const projectRoot = process.cwd()
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
},
webpack: (config) => {
config.resolve = config.resolve || {}
config.resolve.alias = {
...(config.resolve.alias || {}),
// Optional native-only deps (alias to empty stub to avoid runtime factory errors)
'@react-native-async-storage/async-storage': path.resolve(projectRoot, 'stubs/empty.js'),
'pino-pretty': path.resolve(projectRoot, 'stubs/empty.js'),
// (removed wagmi connector stubs so real connectors can be used without warnings)
// Extra safety for nested deps
'@metamask/sdk': path.resolve(projectRoot, 'stubs/empty.js'),
'@walletconnect/ethereum-provider': path.resolve(projectRoot, 'stubs/empty.js'),
'@walletconnect/universal-provider': path.resolve(projectRoot, 'stubs/empty.js'),
'@walletconnect/logger': path.resolve(projectRoot, 'stubs/empty.js'),
}
return config
},
}
export default nextConfig