feat: seed fight card with scheduled fights in dev mode

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-09 09:15:33 +00:00
co-authored by Claude Opus 4.6
parent 3c32f01aa7
commit 62b957e886
2 changed files with 150 additions and 3 deletions
+3 -2
View File
@@ -6,7 +6,7 @@ import { seedMockBots, seedClassicBots } from './engine/mock.js'
import { startBackgroundFights } from './engine/background.js'
import { getActiveFighterCount } from './engine/orchestrator.js'
import { clearAllPending } from './engine/human-responses.js'
import { seedDevTournament } from './engine/dev-seed.js'
import { seedDevTournament, seedFightCard } from './engine/dev-seed.js'
// Production env validation — warn but don't crash (wallet features degrade gracefully)
if (process.env.NODE_ENV === 'production') {
@@ -25,9 +25,10 @@ runMigrations()
await seedMockBots()
await seedClassicBots()
// Dev mode: seed tournament + betting data for testing
// Dev mode: seed tournament + betting data + fight card for testing
if (process.env.NODE_ENV !== 'production') {
await seedDevTournament()
await seedFightCard()
}
const port = Number(process.env.PORT) || 9100