@jaypie/constructs 1.2.5 → 1.2.6
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/JaypieLambda.d.ts +1 -1
- package/dist/cjs/JaypieNextJs.d.ts +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/JaypieLambda.d.ts +1 -1
- package/dist/esm/JaypieNextJs.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export interface JaypieLambdaProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* DynamoDB tables to grant read/write access to the Lambda function.
|
|
23
23
|
* Each table is granted read/write access and if exactly one table is provided,
|
|
24
|
-
* the
|
|
24
|
+
* the DYNAMODB_TABLE_NAME environment variable is set to the table name.
|
|
25
25
|
*/
|
|
26
26
|
tables?: dynamodb.ITable[];
|
|
27
27
|
/**
|
|
@@ -23,7 +23,7 @@ export interface JaypieNextjsProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* DynamoDB tables to grant read/write access to the Next.js server function.
|
|
25
25
|
* Each table is granted read/write access and if exactly one table is provided,
|
|
26
|
-
* the
|
|
26
|
+
* the DYNAMODB_TABLE_NAME environment variable is set to the table name.
|
|
27
27
|
*/
|
|
28
28
|
tables?: dynamodb.ITable[];
|
|
29
29
|
/**
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1307,7 +1307,7 @@ class JaypieLambda extends constructs.Construct {
|
|
|
1307
1307
|
});
|
|
1308
1308
|
// Add table name to environment if there's exactly one table
|
|
1309
1309
|
if (tables.length === 1) {
|
|
1310
|
-
this._lambda.addEnvironment("
|
|
1310
|
+
this._lambda.addEnvironment("DYNAMODB_TABLE_NAME", tables[0].tableName);
|
|
1311
1311
|
}
|
|
1312
1312
|
// Configure provisioned concurrency if specified
|
|
1313
1313
|
if (provisionedConcurrentExecutions !== undefined) {
|
|
@@ -2949,7 +2949,7 @@ class JaypieNextJs extends constructs.Construct {
|
|
|
2949
2949
|
});
|
|
2950
2950
|
// Add table name to environment if there's exactly one table
|
|
2951
2951
|
if (tables.length === 1) {
|
|
2952
|
-
nextjs.serverFunction.lambdaFunction.addEnvironment("
|
|
2952
|
+
nextjs.serverFunction.lambdaFunction.addEnvironment("DYNAMODB_TABLE_NAME", tables[0].tableName);
|
|
2953
2953
|
}
|
|
2954
2954
|
// Store reference to nextjs for property exposure
|
|
2955
2955
|
this._nextjs = nextjs;
|