Files
web/next.config.js
2025-10-12 19:17:51 -04:00

43 lines
875 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
unoptimized: true,
},
trailingSlash: true,
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
crypto: false,
stream: false,
http: false,
https: false,
zlib: false,
path: false,
os: false,
'pino-pretty': false,
'@react-native-async-storage/async-storage': false,
'react-native': false,
};
config.externals.push(
'pino-pretty',
'lokijs',
'encoding'
);
// Ignore specific warnings
config.ignoreWarnings = [
/Failed to parse source map/,
/Critical dependency: the request of a dependency is an expression/,
];
return config;
},
};
module.exports = nextConfig;