Files
fund/next.config.js

36 lines
751 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
unoptimized: true,
},
trailingSlash: true,
webpack: (config, { isServer }) => {
// Handle node modules that don't work in browser
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
crypto: false,
stream: false,
url: false,
zlib: false,
http: false,
https: false,
assert: false,
os: false,
path: false,
}
}
// Externalize problematic modules
config.externals.push('pino-pretty', 'encoding')
return config
},
}
module.exports = nextConfig