
visual-anim-studio
Automated visual generation pipeline for GPTMarlon Reels
Created Sep 2026
We encountered runtime errors where Chromium binaries were missing from the deployed function because @vercel/nft failed to automatically trace them due to dynamic file access. By updating next.config.ts to include the ./node_modules/@sparticuz/chromium/bin/**/* directory in outputFileTracingIncludes, we ensure these necessary assets are correctly bundled. The deployment is now stable. 
We encountered runtime errors where Next.js was attempting to tree-shake the @sparticuz/chromium package, removing the essential Chromium binary needed at runtime. By adding it to serverExternalPackages in next.config.ts, we ensure the binary is included as-is in the deployment, preventing the 'input directory does not exist' failure. 
We have scaffolded the web application using Next.js 16 and React 19 within our pnpm workspace, fully integrating it with existing @visual-studio packages. As part of this setup, a throwaway API route has been introduced to validate that @sparticuz/chromium and puppeteer-core operate correctly within the Vercel serverless runtime. This proactive validation ensures our rendering pipeline assumptions hold true before we commit to deeper architectural work. 
Introduced a robust six-phase automated pipeline designed to transform scripts and SRT files into professionally rendered Remotion visual assets. This modular architecture includes a planner, template engine, generation router, and review system, supported by 130 passing end-to-end tests across 8 packages. This foundation enables fully automated reel creation with named, timestamped output. 