const withPlugins = require('next-compose-plugins'); const optimizedImages = require('next-optimized-images'); /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, trailingSlash: true, images: { loader: 'custom', disableStaticImages: true, }, webpack(config) { config.resolve.fallback = { ...config.resolve.fallback, fs: false, }; config.module.rules.push({ test: /\.wasm(\.bin)?$/i, type: 'asset/resource', generator: { filename: 'static/[hash][ext][query]' } }) return config; }, } module.exports = withPlugins([ [optimizedImages, { // config }], ], nextConfig);