-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.js
More file actions
36 lines (29 loc) · 931 Bytes
/
next.config.js
File metadata and controls
36 lines (29 loc) · 931 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
29
30
31
32
33
34
35
36
/** @type {import('next').NextConfig} */
const path = require('path');
const nextConfig = {
reactStrictMode: true,
// Enable Turbopack (Next.js 16 default)
// Empty config to silence Next.js 16 warning
turbopack: {},
// Set the output file tracing root to this directory
outputFileTracingRoot: __dirname,
// Webpack configuration for compatibility
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
};
// Silence pino-pretty warning from WalletConnect
config.resolve.alias = {
...config.resolve.alias,
'pino-pretty': false,
// blue-sdk-viem v4.5+ restricts subpath exports; alias the augment path
'@morpho-org/blue-sdk-viem/lib/augment': path.resolve(
__dirname,
'node_modules/@morpho-org/blue-sdk-viem/lib/esm/augment/index.js'
),
};
return config;
},
};
module.exports = nextConfig;