Compare commits

...

3 Commits

Author SHA1 Message Date
mindesbunister
1efd9bf577 Merge pull request #10 from mindesbunister/copilot/fix-instrumentation-hook-issue
fix: Enable Next.js instrumentation hook for startup services
2025-12-05 15:22:48 +01:00
copilot-swe-agent[bot]
5711fc2fec fix: Enable Next.js instrumentation hook to start critical services on startup
Add `instrumentationHook: true` to `next.config.js` experimental section.

This fixes a critical bug where the instrumentation.ts file was not being
executed on server startup, causing all startup services to not run:
- Stop Hunt Revenge Tracker (93 revenge opportunities missed)
- Position Manager (no monitoring of open trades)
- Ghost Position Cleanup
- Data Cleanup Service
- Blocked Signal Tracking
- Smart Validation Queue
- Database Sync Validator

The instrumentation.ts file existed and contained proper initialization code,
but Next.js requires explicit opt-in via the experimental.instrumentationHook
flag to enable this feature.

Co-authored-by: mindesbunister <32161838+mindesbunister@users.noreply.github.com>
2025-12-05 14:21:16 +00:00
copilot-swe-agent[bot]
0a768e2f5c Initial plan 2025-12-05 14:10:51 +00:00

View File

@@ -2,6 +2,7 @@
const nextConfig = {
output: 'standalone',
experimental: {
instrumentationHook: true, // Enable instrumentation.ts on server startup
serverActions: {
bodySizeLimit: '2mb',
},