ROOT CAUSE IDENTIFIED: - Database schema error: Prisma ai_learning_data missing 'id' field - Missing function: generateLearningReport() not in SimplifiedStopLossLearner - Memory leaks: Unhandled errors causing EventEmitter overflow - Next.js config: Deprecated serverComponentsExternalPackages warning FIXES APPLIED: - Added unique ID generation for Prisma ai_learning_data records - Commented out problematic generateLearningReport calls in risk manager - Updated next.config.ts to use serverExternalPackages (new format) - Prevented cascading unhandled errors that led to MaxListeners warnings - Container now starts without crashes - No more unhandled error floods - Orphaned order cleanup integration preserved and working - Superior parallel screenshot system still operational This fixes the instability issues that were causing trader_dev to crash and restart.
17 lines
335 B
TypeScript
17 lines
335 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
output: 'standalone',
|
|
serverExternalPackages: ['puppeteer-core'],
|
|
transpilePackages: ['next-font'],
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
}
|
|
};
|
|
|
|
export default nextConfig;
|