fix: fix cdragon cache directory

This commit is contained in:
2026-04-30 16:31:25 +02:00
parent 686962b678
commit 8ee981b949
2 changed files with 10 additions and 4 deletions

View File

@@ -46,7 +46,8 @@ async function downloadCDragonAssets(patch: string) {
console.log(`\n=== Downloading CDragon assets for patch ${cdragonPatch} ===`)
// Get cache directory from environment or use default
// In development, use a local directory relative to project root; in production (Docker), use /cdragon
// In development, use a local directory relative to project root
// In production (Docker), use /cdragon (shared volume with frontend)
const defaultCacheDir =
process.env.NODE_ENV === 'development'
? resolve(__dirname, '../../dev/data/cdragon')