mango-v4-ui/next.config.js

26 lines
543 B
JavaScript
Raw Normal View History

2022-04-12 13:48:22 -07:00
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
2022-05-03 21:20:14 -07:00
env: {
BROWSER: true,
},
webpack: (config, { isServer }) => {
if (!isServer) {
// don't resolve 'fs' module on the client to prevent this error on build --> Error: Can't resolve 'fs'
config.resolve.fallback = {
fs: false,
os: false,
path: false,
process: false,
util: false,
assert: false,
stream: false,
}
}
return config
},
2022-04-12 13:48:22 -07:00
}
module.exports = nextConfig