🎥 Make videos programmatically with React
rm isProduction
Patric Salvisberg076ab6c061a1
diff --git a/packages/core/src/get-environment.ts b/packages/core/src/get-environment.tsindex 9efc93ea08..334a7a0bcb 100644--- a/packages/core/src/get-environment.ts+++ b/packages/core/src/get-environment.ts@@ -4,7 +4,6 @@ export type RemotionEnvironment = {isStudio: boolean;isRendering: boolean;isPlayer: boolean;- isProduction: boolean;};/**@@ -18,7 +17,6 @@ export const getRemotionEnvironment = (): RemotionEnvironment => {isStudio: false,isRendering: false,isPlayer: true,- isProduction: true,};}@@ -26,7 +24,6 @@ export const getRemotionEnvironment = (): RemotionEnvironment => {isStudio: false,isRendering: true,isPlayer: false,- isProduction: true,};}@@ -38,7 +35,6 @@ export const getRemotionEnvironment = (): RemotionEnvironment => {isStudio: false,isRendering: true,isPlayer: false,- isProduction: false,};}@@ -47,7 +43,6 @@ export const getRemotionEnvironment = (): RemotionEnvironment => {isStudio: false,isRendering: false,isPlayer: true,- isProduction: false,};}@@ -55,7 +50,6 @@ export const getRemotionEnvironment = (): RemotionEnvironment => {isStudio: true,isRendering: false,isPlayer: false,- isProduction: false,};};@@ -67,7 +61,6 @@ export const useRemotionEnvironment = (): RemotionEnvironment => {isStudio: false,isRendering: false,isPlayer: true,- isProduction: true,};}@@ -75,7 +68,6 @@ export const useRemotionEnvironment = (): RemotionEnvironment => {isStudio: false,isRendering: false,isPlayer: true,- isProduction: false,};}diff --git a/packages/docs/docs/get-remotion-environment.md b/packages/docs/docs/get-remotion-environment.mdindex aed08b11b5..6cbdea32a7 100644--- a/packages/docs/docs/get-remotion-environment.md+++ b/packages/docs/docs/get-remotion-environment.md@@ -10,7 +10,6 @@ With the `getRemotionEnvironment()` function , you can retrieve information abou- `isStudio`: Indicates if you are currently in the studio.- `ìsRendering`: Tells if one is currently in a render.- `isPlayer`: Indicates if you are in the Player.-- `isProduction`: Based on your .env file, tells if you are in production or in developmentThis can be useful if you want components to compute some values differently based on the environment you are in.