@payloadcms/figma 0.0.1-alpha.53 → 0.0.1-alpha.55

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 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') {
@@ -63,8 +63,9 @@ function missingOAuthCredential(name) {
63
63
  }
64
64
  export async function buildFigmaConfig(config) {
65
65
  const envConfig = getEnvConfig();
66
- // Resolve contentSystemId: config first, then local store fallback (dev)
66
+ // Resolve contentSystemId: config first, env var, then local store fallback (dev)
67
67
  let { contentSystemId } = config.figma;
68
+ contentSystemId ??= process.env.FIGMA_CONTENT_API_CONTENT_SYSTEM_ID;
68
69
  let bootstrapData = null;
69
70
  if (!contentSystemId) {
70
71
  const projectId = process.env.FIGMA_PROJECT_ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/figma",
3
- "version": "0.0.1-alpha.53",
3
+ "version": "0.0.1-alpha.55",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "exports": {