compress the mf (#1267)

This commit is contained in:
NotSoToothless
2026-05-24 19:44:12 -07:00
committed by GitHub
parent 99a43e398e
commit 9c6ca3bcd7
7 changed files with 50 additions and 41 deletions
+2 -2
View File
@@ -1828,7 +1828,7 @@ app.get('/api/match/:sessionId/video', async (req, res) => {
const sessionDir = resolveReplaySessionDir(sessionId);
const videoPath = path.join(sessionDir, 'replay_video.mp4');
const replayPath = path.join(sessionDir, 'replay_data.json');
const replayPath = path.join(sessionDir, 'replay_data.json.gz');
// 1. Serve from disk if cached
if (fs.existsSync(videoPath)) {
@@ -1891,7 +1891,7 @@ app.get('/api/match/:sessionId/replay-canvas', async (req, res) => {
const sessionDir = resolveReplaySessionDir(sessionId);
const jsonPath = path.join(sessionDir, 'replay_canvas.json');
const replayPath = path.join(sessionDir, 'replay_data.json');
const replayPath = path.join(sessionDir, 'replay_data.json.gz');
// 1. Serve from disk if cached
if (fs.existsSync(jsonPath)) {