@payloadcms/figma 0.0.1-alpha.53 → 0.0.1-alpha.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.js +2 -2
- package/package.json +1 -1
package/dist/constants.js
CHANGED
|
@@ -47,8 +47,8 @@ export function getInfraEnvironment() {
|
|
|
47
47
|
if (process.env.FIGMA_INFRA_ENV?.toLowerCase() === 'staging') {
|
|
48
48
|
return 'staging';
|
|
49
49
|
}
|
|
50
|
-
// Fall back to .env file in cwd
|
|
51
|
-
const envFileValue = getEnvVarSync(process.cwd(), 'FIGMA_INFRA_ENV');
|
|
50
|
+
// Fall back to .env file in cwd (check both new and old env var names)
|
|
51
|
+
const envFileValue = getEnvVarSync(process.cwd(), 'FIGMA_INFRA_ENV') ?? getEnvVarSync(process.cwd(), 'FIGMA_ENV');
|
|
52
52
|
if (envFileValue) {
|
|
53
53
|
const env = envFileValue.toLowerCase();
|
|
54
54
|
if (env === 'staging') {
|