-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathnext.config.ts
More file actions
39 lines (37 loc) · 904 Bytes
/
Copy pathnext.config.ts
File metadata and controls
39 lines (37 loc) · 904 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
37
38
39
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
devIndicators: false,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
},
],
// Don't optimize external favicon URLs
unoptimized: process.env.NODE_ENV === 'development',
},
// Suppress favicon fetch errors in development
onDemandEntries: {
maxInactiveAge: 60 * 1000, // Increased to 60 seconds to prevent page disposal when switching tabs
pagesBufferLength: 5, // Increased buffer to keep more pages in memory
},
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: 'https://history.valyu.ai',
},
],
},
];
},
};
export default nextConfig;