/** @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;