@jaypie/constructs 1.2.22 → 1.2.24
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/cjs/__tests__/issue-158-shared-secrets.spec.d.ts +1 -0
- package/dist/cjs/index.cjs +6 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/__tests__/issue-158-shared-secrets.spec.d.ts +1 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1333,7 +1333,8 @@ class JaypieLambda extends constructs.Construct {
|
|
|
1333
1333
|
// Get base environment with defaults
|
|
1334
1334
|
const environment = jaypieLambdaEnv({ initialEnvironment });
|
|
1335
1335
|
// Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
|
|
1336
|
-
|
|
1336
|
+
// Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
|
|
1337
|
+
const secrets = resolveSecrets(cdk.Stack.of(this), secretsInput);
|
|
1337
1338
|
const codeAsset = typeof code === "string" ? lambda__namespace.Code.fromAsset(code) : code;
|
|
1338
1339
|
// Create a working copy of layers
|
|
1339
1340
|
const resolvedLayers = [...layers];
|
|
@@ -3242,7 +3243,8 @@ class JaypieNextJs extends constructs.Construct {
|
|
|
3242
3243
|
: props?.nextjsPath || path__namespace.join(process.cwd(), "..", "nextjs");
|
|
3243
3244
|
const paramsAndSecrets = resolveParamsAndSecrets();
|
|
3244
3245
|
// Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
|
|
3245
|
-
|
|
3246
|
+
// Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
|
|
3247
|
+
const secrets = resolveSecrets(cdk.Stack.of(this), props?.secrets);
|
|
3246
3248
|
// Process secrets environment variables
|
|
3247
3249
|
const secretsEnvironment = Object.entries(envSecrets).reduce((acc, [key, secret]) => ({
|
|
3248
3250
|
...acc,
|
|
@@ -3301,11 +3303,13 @@ class JaypieNextJs extends constructs.Construct {
|
|
|
3301
3303
|
nextjsImage: {
|
|
3302
3304
|
functionProps: {
|
|
3303
3305
|
paramsAndSecrets,
|
|
3306
|
+
timeout: cdk.Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER),
|
|
3304
3307
|
},
|
|
3305
3308
|
},
|
|
3306
3309
|
nextjsServer: {
|
|
3307
3310
|
functionProps: {
|
|
3308
3311
|
paramsAndSecrets,
|
|
3312
|
+
timeout: cdk.Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER),
|
|
3309
3313
|
},
|
|
3310
3314
|
},
|
|
3311
3315
|
},
|