feat: Add cover art support and auto-migration

- Extract cover art from MP3s during upload
- Display cover art in game result screens (win/loss)
- Add coverImage field to Song model
- Add migration script to backfill covers for existing songs
- Configure Docker to run migration script on startup
This commit is contained in:
Hördle Bot
2025-11-21 15:51:22 +01:00
parent 0c9508076f
commit 29d43effe3
8 changed files with 178 additions and 4 deletions

View File

@@ -14,6 +14,6 @@ services:
volumes:
- ./data:/app/data
- ./public/uploads:/app/public/uploads
# Initialize DB if needed
# Initialize DB if needed and run migration
command: >
sh -c "npx -y prisma@6.19.0 db push && node server.js"
sh -c "npx -y prisma@6.19.0 db push && node scripts/migrate-covers.mjs && node server.js"