-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
62 lines (60 loc) · 1.27 KB
/
next.config.mjs
File metadata and controls
62 lines (60 loc) · 1.27 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
52
53
54
55
56
57
58
59
60
61
62
// @ts-check
/** @type {import('next').NextConfig} */
const nextConfig = {
compiler: {
removeConsole: process.env.NODE_ENV === "production",
},
compress: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
poweredByHeader: false,
reactCompiler: true,
reactStrictMode: true,
logging: {
fetches: {
fullUrl: true,
},
},
experimental: {
inlineCss: true,
optimizeCss: true,
optimizeServerReact: true,
optimizePackageImports: [
"lucide-react",
"@radix-ui/react-avatar",
"@radix-ui/react-separator",
"@radix-ui/react-slot",
"@coinbase/onchainkit",
"@farcaster/miniapp-sdk",
"@farcaster/miniapp-core",
"@farcaster/miniapp-node",
"@farcaster/miniapp-wagmi-connector",
"viem",
"viem/actions",
"viem/chains",
"viem/ens",
"viem/utils",
"viem/errors",
"wagmi",
"@wagmi/core",
"@wagmi/connectors",
"ox",
"@adraffy/ens-normalize",
"@noble/curves",
"@noble/hashes",
],
},
serverExternalPackages: ["@solana/web3.js", "rpc-websockets", "tr46"],
turbopack: {
resolveAlias: {
"wagmi/experimental": "wagmi",
},
},
};
export default nextConfig;