forked from dcatanzaro/argentumonlineweb-cliente
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
33 lines (30 loc) · 849 Bytes
/
Copy pathnext.config.js
File metadata and controls
33 lines (30 loc) · 849 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
/** @type {import('next').NextConfig} */
const nextConfig = {
publicRuntimeConfig: {
backend_url: process.env.NODE_ENV ? process.env.NODE_ENV : "dev"
},
sassOptions: {
includePaths: ['./styles'],
},
webpack: (config, { isServer }) => {
// Configuración específica para el servidor
if (isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false
};
}
// Optimizaciones generales
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
};
return config;
},
// Reducir la cantidad de archivos observados
onDemandEntries: {
maxInactiveAge: 25 * 1000,
pagesBufferLength: 2,
}
};
module.exports = nextConfig;