import type { NextConfig } from "next"; const nextConfig: NextConfig = { // Output standalone for easier deployment output: "standalone", // Enable experimental features experimental: { // Enable server actions serverActions: { bodySizeLimit: "2mb", }, }, // Webpack configuration for Socket.IO webpack: (config, { isServer }) => { if (!isServer) { config.resolve.fallback = { ...config.resolve.fallback, fs: false, net: false, tls: false, }; } return config; }, }; export default nextConfig;