mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
10 lines
474 B
JavaScript
10 lines
474 B
JavaScript
#!/usr/bin/env node
|
|
// Pre-bundle Remotion composition during Docker build.
|
|
// This warms up the Webpack cache so the first user render is fast.
|
|
const { bundle } = require('@remotion/bundler');
|
|
const path = require('path');
|
|
|
|
bundle({ entryPoint: path.resolve(__dirname, '../client/src/remotion/index.ts') })
|
|
.then(loc => console.log('✅ Remotion pre-bundle OK:', loc))
|
|
.catch(e => { console.warn('⚠️ Remotion pre-bundle skipped:', e.message); process.exit(0); });
|