Replace static FFmpeg post-processing with Remotion-powered browser rendering: - Animated word-by-word subtitles (pop, karaoke, glow styles) with real-time preview - Hook overlays with entrance animations (spring, fade, slide-up) - Video effects layer (zoom, brightness, contrast, saturate) - Browser-side rendering via @remotion/web-renderer (WebCodecs) - Editable transcript text in subtitle modal - Layers accumulate across operations (subtitles + hook rendered together) - Gemini EffectsConfig endpoint for structured JSON instead of fragile FFmpeg strings - Render service (Node.js) as alternative server-side renderer - New API endpoints: /api/clip/transcript, /api/effects/generate, /api/render Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
847 B
JavaScript
39 lines
847 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
allowedHosts: [
|
|
'openshorts.app',
|
|
'www.openshorts.app'
|
|
],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/videos': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/thumbnails': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/gallery': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/video': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/render': {
|
|
target: 'http://renderer:3100',
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
}
|
|
})
|