chore: overhaul infrastructure and integrate @mintel packages
Some checks failed
🧪 CI (QA) / 🧪 Quality Assurance (push) Failing after 1m3s
Some checks failed
🧪 CI (QA) / 🧪 Quality Assurance (push) Failing after 1m3s
- Restructure to pnpm monorepo (site moved to apps/web) - Integrate @mintel/tsconfig, @mintel/eslint-config, @mintel/husky-config - Implement Docker service architecture (Varnish, Directus, Gatekeeper) - Setup environment-aware Gitea Actions deployment
This commit is contained in:
28
apps/web/video/webpack-override.ts
Normal file
28
apps/web/video/webpack-override.ts
Normal 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'),
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user