feat: Implement Remotion video generation with dedicated client UI, components, and server-side rendering.

This commit is contained in:
Michael committed 2026-03-24 12:35:52 +01:00
1 parent 177f4db455
commit e41c43c1da
13 files changed
+2998 -41

No files matched your search

+7
View File
@@ -1,4 +1,6 @@
import express, { type Request, Response, NextFunction } from "express";
import path from "path";
import fs from "fs";
import session from "express-session";
import connectPgSimple from "connect-pg-simple";
import pg from "pg";
@@ -64,6 +66,11 @@ app.use('/api/auth/login', authLimiter);
const AUDIO_UPLOAD_DIR = process.env.AUDIO_UPLOAD_DIR || '/app/uploads/audio';
app.use('/uploads/audio', express.static(AUDIO_UPLOAD_DIR));
// Serve temp uploads for Remotion
const TEMP_UPLOAD_DIR = process.env.TEMP_UPLOAD_DIR || path.join(process.cwd(), 'uploads', 'temp');
try { fs.mkdirSync(TEMP_UPLOAD_DIR, { recursive: true }); } catch { /* ignore */ }
app.use('/uploads/temp', express.static(TEMP_UPLOAD_DIR));
declare module 'http' {
interface IncomingMessage {
rawBody: unknown