@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/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
|
-
|
|
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
|
-
|
|
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,
|
|
@@ -3267,11 +3269,13 @@ class JaypieNextJs extends Construct {
|
|
|
3267
3269
|
nextjsImage: {
|
|
3268
3270
|
functionProps: {
|
|
3269
3271
|
paramsAndSecrets,
|
|
3272
|
+
timeout: Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER),
|
|
3270
3273
|
},
|
|
3271
3274
|
},
|
|
3272
3275
|
nextjsServer: {
|
|
3273
3276
|
functionProps: {
|
|
3274
3277
|
paramsAndSecrets,
|
|
3278
|
+
timeout: Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER),
|
|
3275
3279
|
},
|
|
3276
3280
|
},
|
|
3277
3281
|
},
|