/** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", webpack(config, { isServer }) { config.module.rules.push({ test: /\.svg$/i, issuer: /\.[jt]sx?$/, use: ["@svgr/webpack"], }); if (isServer) { import("./polyfills/customevent.js"); } return config; }, }; export default nextConfig;