mirror of
https://github.com/zoo-apps/fund.git
synced 2026-10-30 14:57:02 +00:00
36 lines
751 B
JavaScript
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
|