@jaypie/constructs 1.2.22 → 1.2.23

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/esm/index.js CHANGED
@@ -1299,7 +1299,8 @@ class JaypieLambda extends Construct {
1299
1299
  // Get base environment with defaults
1300
1300
  const environment = jaypieLambdaEnv({ initialEnvironment });
1301
1301
  // Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
1302
- const secrets = resolveSecrets(scope, secretsInput);
1302
+ // Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
1303
+ const secrets = resolveSecrets(Stack.of(this), secretsInput);
1303
1304
  const codeAsset = typeof code === "string" ? lambda.Code.fromAsset(code) : code;
1304
1305
  // Create a working copy of layers
1305
1306
  const resolvedLayers = [...layers];
@@ -3208,7 +3209,8 @@ class JaypieNextJs extends Construct {
3208
3209
  : props?.nextjsPath || path.join(process.cwd(), "..", "nextjs");
3209
3210
  const paramsAndSecrets = resolveParamsAndSecrets();
3210
3211
  // Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
3211
- const secrets = resolveSecrets(scope, props?.secrets);
3212
+ // Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
3213
+ const secrets = resolveSecrets(Stack.of(this), props?.secrets);
3212
3214
  // Process secrets environment variables
3213
3215
  const secretsEnvironment = Object.entries(envSecrets).reduce((acc, [key, secret]) => ({
3214
3216
  ...acc,