-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
38 lines (36 loc) · 1.3 KB
/
next.config.ts
File metadata and controls
38 lines (36 loc) · 1.3 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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactStrictMode: true,
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'framerusercontent.com' },
{ protocol: 'https', hostname: 'is1-ssl.mzstatic.com' },
{ protocol: 'https', hostname: 'static1.tokenterminal.com' },
{ protocol: 'https', hostname: 'avatarfiles.alphacoders.com' },
{ protocol: 'https', hostname: 'uxwing.com' },
{ protocol: 'https', hostname: 'encrypted-tbn0.gstatic.com' },
{ protocol: 'https', hostname: 'static.crypto.com' },
{ protocol: 'https', hostname: 'i.ibb.co' },
{ protocol: 'https', hostname: 'i.imgflip.com' },
{ protocol: 'https', hostname: 'pbs.twimg.com' },
],
},
// Suppress hydration warnings from browser extensions
onDemandEntries: {
maxInactiveAge: 25 * 1000,
pagesBufferLength: 2,
},
// Webpack configuration to prevent cache errors
webpack: (config, { dev, isServer }) => {
// Use memory cache in development to prevent ENOENT file system errors
if (dev && !isServer) {
config.cache = {
type: 'memory',
};
}
return config;
},
// Content Security Policy is now handled by middleware.ts for better dev/prod control
};
export default nextConfig;