forked from Nutlope/turboseek
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.mjs
56 lines (55 loc) · 1.69 KB
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
// Use an alternate config for type checking to ignore test-related files
tsconfigPath: 'tsconfig.json',
// Disable type checking in development for better performance
// Still runs in build mode for CI/deployment safety
ignoreBuildErrors: true,
},
// Environment variables that should be available to the client
env: {
OPENSVM_RPC_LIST: process.env.OPENSVM_RPC_LIST,
OPENSVM_RPC_LIST_2: process.env.OPENSVM_RPC_LIST_2
},
// Image optimization
images: {
domains: ['arweave.net', 'www.arweave.net'],
remotePatterns: [
{
protocol: 'https',
hostname: '**.arweave.net',
},
],
},
// Experimental features
experimental: {
// Enable modern optimizations
optimizePackageImports: [
'lucide-react',
'@radix-ui/react-dropdown-menu',
'@radix-ui/react-dialog',
'@radix-ui/react-select',
'@radix-ui/react-tabs'
],
// Enable server actions with increased limit
serverActions: {
bodySizeLimit: '2mb'
}
},
// Enable React strict mode
reactStrictMode: false,
// Enable production source maps for better debugging
productionBrowserSourceMaps: true,
// Preserve specific Tailwind classes that are dynamically added
// This ensures animation classes used by interactive components
// are included in production builds
webpack: (config, { dev, isServer }) => {
// Only apply optimizations in production builds
if (!dev && !isServer) {
//config.optimization.splitChunks.cacheGroups = { ...config.optimization.splitChunks.cacheGroups };
}
return config;
},
};
export default nextConfig;