Skip to content

🎥 Make videos programmatically with React

run dev

Jonny Burger5dcf091a9e70
diff --git a/packages/docs/docs/contributing/index.mdx b/packages/docs/docs/contributing/index.mdx
index d0d2a4ebec..689b0f32bb 100644
--- a/packages/docs/docs/contributing/index.mdx
+++ b/packages/docs/docs/contributing/index.mdx
@@ -75,14 +75,14 @@ You can start the Testbed using
```sh
cd packages/example
-pnpm start
+pnpm run dev
```
You can render a test video using
```sh
cd packages/example
-pnpm render
+pnpm exec remotion render
```
You can run tests using
@@ -99,7 +99,7 @@ You can test changes to [@remotion/player](https://remotion.dev/docs/player) by
```sh
cd packages/player-example
-pnpm start
+pnpm run dev
```
For information about testing, please consult [TESTING.md](https://github.com/remotion-dev/remotion/blob/main/TESTING.md). Issues and pull requests of all sorts are welcome!
diff --git a/packages/docs/docs/env-variables.mdx b/packages/docs/docs/env-variables.mdx
index 161329f824..8f3b75ead4 100644
--- a/packages/docs/docs/env-variables.mdx
+++ b/packages/docs/docs/env-variables.mdx
@@ -2,7 +2,7 @@
image: /generated/articles-docs-env-variables.png
id: env-variables
title: Environment variables
-crumb: "How To"
+crumb: 'How To'
---
_Available from v2.1.2._
@@ -16,7 +16,7 @@ If you want to pass an environment variable from the CLI, you need to prefix it
You can pass environment variables in development mode and while rendering. For example:
```bash
-REMOTION_MY_VAR=hello_world npm start
+REMOTION_MY_VAR=hello_world npm run dev
```
In your project, you can access the variable using `process.env.REMOTION_MY_VAR`.
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index 9348630d04..1b7ecd18d0 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -7,8 +7,8 @@ slug: /
crumb: "Let's begin!"
---
-import Tabs from "@theme/Tabs";
-import TabItem from "@theme/TabItem";
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
## Prerequisites
@@ -81,7 +81,7 @@ values={[
After the project has been scaffolded, we recommend to open the project in your text editor and starting the [Remotion Studio](/docs/studio):
```bash
-npm start
+npm run dev
```
</TabItem>
diff --git a/packages/docs/docs/preview.mdx b/packages/docs/docs/preview.mdx
index 0b12f7dca2..3ffc40c30b 100644
--- a/packages/docs/docs/preview.mdx
+++ b/packages/docs/docs/preview.mdx
@@ -2,11 +2,11 @@
image: /generated/articles-docs-preview.png
title: Preview your video
id: preview
-crumb: "Timeline basics"
+crumb: 'Timeline basics'
---
-import Tabs from "@theme/Tabs";
-import TabItem from "@theme/TabItem";
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
You can preview your video by starting the [Remotion Studio](/docs/studio):
@@ -20,7 +20,7 @@ values={[
<TabItem value="Regular templates">
```bash
-npm start
+npm run dev
```
</TabItem>
@@ -45,3 +45,7 @@ A server will be started on port `3000` (or a higher port if it isn't available)
<img src="/img/timeline.png"></img>
Learn more about the [Remotion Studio](/docs/studio).
+
+:::note
+In older projects, `npm start` was used over `npm run dev`.
+:::
diff --git a/packages/example/package.json b/packages/example/package.json
index 35d695d531..691c0e34cd 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -13,7 +13,7 @@
],
"scripts": {
"formatting": "prettier src --check",
- "start": "remotion studio --props src/my-props.json",
+ "dev": "remotion studio --props src/my-props.json",
"start-bun": "PATCH_BUN_DEVELOPMENT=true bun --bun remotion studio",
"start-js": "remotion preview src/entry.jsx",
"comps": "remotion compositions",