feat: Integrate Remotion for video generation, add video compositions, and adapt ContactForm for Remotion compatibility.
Some checks failed
Build & Deploy Mintel Blog / build-and-deploy (push) Failing after 2m19s

This commit is contained in:
2026-02-01 12:55:01 +01:00
parent 76b6b2ca03
commit 2113055a90
21 changed files with 6045 additions and 141 deletions

28
video/webpack-override.ts Normal file
View File

@@ -0,0 +1,28 @@
import { WebpackOverrideFn } from '@remotion/bundler';
import path from 'path';
export const webpackOverride: WebpackOverrideFn = (currentConfig) => {
return {
...currentConfig,
resolve: {
...currentConfig.resolve,
alias: {
...(currentConfig.resolve?.alias ?? {}),
'@': path.resolve(__dirname, '..'),
'next/navigation': path.resolve(__dirname, 'mocks/next-navigation.tsx'),
'next/image': path.resolve(__dirname, 'mocks/next-image.tsx'),
'next/link': path.resolve(__dirname, 'mocks/next-navigation.tsx'),
// SYSTEMATIC ALIASING FOR ALL ANIMATION PROXYING
'framer-motion': path.resolve(__dirname, 'mocks/framer-motion.tsx'),
'framer-motion/dist/framer-motion': path.resolve(__dirname, 'mocks/framer-motion.tsx'),
// Reveal Component Proxying (Deterministic Reveal)
'../Reveal': path.resolve(__dirname, 'mocks/reveal.tsx'),
'../../Reveal': path.resolve(__dirname, 'mocks/reveal.tsx'),
'../../../Reveal': path.resolve(__dirname, 'mocks/reveal.tsx'),
'@/src/components/Reveal': path.resolve(__dirname, 'mocks/reveal.tsx'),
},
},
};
};