27 lines
683 B
TypeScript
27 lines
683 B
TypeScript
/**
|
|
* Note: When using the Node.JS APIs, the config file
|
|
* doesn't apply. Instead, pass options directly to the APIs.
|
|
*
|
|
* All configuration options: https://remotion.dev/docs/config
|
|
*/
|
|
|
|
import { Config } from "@remotion/cli/config";
|
|
import path from "path";
|
|
|
|
Config.setVideoImageFormat("jpeg");
|
|
Config.setOverwriteOutput(true);
|
|
|
|
Config.overrideWebpackConfig((currentConfiguration) => {
|
|
return {
|
|
...currentConfiguration,
|
|
resolve: {
|
|
...currentConfiguration.resolve,
|
|
alias: {
|
|
...(currentConfiguration.resolve?.alias ?? {}),
|
|
"@/public": path.join(process.cwd(), "public"),
|
|
"@": path.join(process.cwd(), "src"),
|
|
},
|
|
},
|
|
};
|
|
});
|