1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getRemotionEnvironment = void 0;
|
4 | const getRemotionEnvironment = () => {
|
5 | if (process.env.NODE_ENV === 'production') {
|
6 | if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
7 | return 'player-production';
|
8 | }
|
9 | return 'rendering';
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 | if (process.env.NODE_ENV === 'test') {
|
15 | return 'rendering';
|
16 | }
|
17 | if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
18 | return 'player-development';
|
19 | }
|
20 | return 'preview';
|
21 | };
|
22 | exports.getRemotionEnvironment = getRemotionEnvironment;
|