Skip to content

🎥 Make videos programmatically with React

remove duplicate explanation from docs

Jonny Burger0f02d01bbdc5
diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts
index 0e15eb9315..34efe436b7 100644
--- a/packages/core/src/config.ts
+++ b/packages/core/src/config.ts
@@ -27,14 +27,14 @@ type CodecOrUndefined =
| undefined;
type Crf = number | undefined;
-// NEW CONFIG FORMAT: Add new options only here.
+// New config format: Add new options only here.
type FlatConfig = ObjectConfig['Bundling'] &
ObjectConfig['Log'] &
ObjectConfig['Preview'] &
ObjectConfig['Puppeteer'] &
ObjectConfig['Output'] &
ObjectConfig['Rendering'];
-// LEGACY CONFIG FORMAT: New options to not need to be added here.
+// Legacy config format: New options to not need to be added here.
type ObjectConfig = {
/**
* @deprecated New flat config format: You can now replace `Config.Preview.` with `Config.`
diff --git a/packages/docs/docs/chromium-flags.md b/packages/docs/docs/chromium-flags.md
index a9959259d6..b6a6d0bbe0 100644
--- a/packages/docs/docs/chromium-flags.md
+++ b/packages/docs/docs/chromium-flags.md
@@ -119,18 +119,6 @@ import { Config } from "remotion";
Config.setChromiumOpenGlRenderer("swiftshader");
```
-Alternatively, you can set the configuration directly from the `Config` object.
-
-```tsx twoslash
-import { Config } from "remotion";
-
-// ---cut---
-
-Config.setChromiumOpenGlRenderer("swiftshader");
-```
-
-
-
## Need more flags?
Open a [GitHub issue](https://github.com/remotion-dev/remotion/issues/new?assignees=&labels=&template=feature_request.md&title=) to request it.
diff --git a/packages/docs/docs/three.md b/packages/docs/docs/three.md
index 5f4a07aca5..8c81e3518f 100644
--- a/packages/docs/docs/three.md
+++ b/packages/docs/docs/three.md
@@ -77,15 +77,6 @@ import { Config } from "remotion";
Config.setChromiumOpenGlRenderer("angle");
```
-Alternatively, you can set the configuration directly from the `Config` object.
-
-```ts twoslash
-import { Config } from "remotion";
-
-Config.setChromiumOpenGlRenderer("angle");
-```
-
-
Since the config file does not apply to server-side rendering, you need to explicitly add
```json