compress the mf (#1267)
This commit is contained in:
+2
-2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user