portfolio/next.config.mjs

15 lines
345 B
JavaScript
Raw Permalink Normal View History

2024-05-28 21:11:13 +00:00
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return []
},
future: { webpack5: true },
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.resolve.alias.canvas = false
config.resolve.alias.encoding = false
return config
},
}
export default nextConfig