This commit is contained in:
Kevin Wong
2026-02-08 10:46:08 +08:00
parent 1e52346eb4
commit 1a291a03b8
49 changed files with 1032 additions and 736 deletions

View File

@@ -134,8 +134,14 @@ async function main() {
// Bundle the Remotion project
console.log('Bundling Remotion project...');
// 修复: 使用 process.cwd() 解析 src/index.ts确保在 dist/render.js 和 ts-node 下都能找到
// 假设脚本总是在 remotion 根目录下运行 (由 python service 保证)
const entryPoint = path.resolve(process.cwd(), 'src/index.ts');
console.log(`Entry point: ${entryPoint}`);
const bundleLocation = await bundle({
entryPoint: path.resolve(__dirname, './src/index.ts'),
entryPoint,
webpackOverride: (config) => config,
publicDir,
});