import type { NextConfig } from "next"; const nextConfig: NextConfig = { // dockerode and systeminformation do dynamic/OS-conditional requires // (optional native bindings, platform-specific code paths) that don't // survive Next's bundler well - keep them as plain runtime requires. serverExternalPackages: ["dockerode", "systeminformation"], }; export default nextConfig;