init commit
This commit is contained in:
@@ -1,7 +1,22 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
webpack: (config, { isServer }) => {
|
||||
// Ignore non-JavaScript files from node_modules
|
||||
config.module.rules.push({
|
||||
test: /\.md$/,
|
||||
type: 'asset/source',
|
||||
});
|
||||
|
||||
// Externalize @remotion packages on server to avoid bundling issues
|
||||
if (isServer) {
|
||||
config.externals.push('@remotion/bundler', '@remotion/renderer');
|
||||
}
|
||||
|
||||
return config;
|
||||
},
|
||||
// Transpile Remotion packages if needed
|
||||
transpilePackages: ['remotion', '@remotion/bundler', '@remotion/renderer'],
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user