import type { NextConfig } from "next"; const nextConfig: NextConfig = { // @microsoft/signalr does dynamic require('ws')/require('eventsource') for // its Node transports — bundling it (turbopack production builds) throws // "dynamic usage of require is not supported" the moment a hub is built. serverExternalPackages: ['better-sqlite3', '@microsoft/signalr'], }; export default nextConfig;