@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.
@@ -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 CDK_ENV_DYNAMO_TABLE environment variable is set to the table name.
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 CDK_ENV_DYNAMO_TABLE environment variable is set to the table name.
26
+ * the DYNAMODB_TABLE_NAME environment variable is set to the table name.
27
27
  */
28
28
  tables?: dynamodb.ITable[];
29
29
  /**
package/dist/esm/index.js CHANGED
@@ -1275,7 +1275,7 @@ class JaypieLambda extends Construct {
1275
1275
  });
1276
1276
  // Add table name to environment if there's exactly one table
1277
1277
  if (tables.length === 1) {
1278
- this._lambda.addEnvironment("CDK_ENV_DYNAMO_TABLE", tables[0].tableName);
1278
+ this._lambda.addEnvironment("DYNAMODB_TABLE_NAME", tables[0].tableName);
1279
1279
  }
1280
1280
  // Configure provisioned concurrency if specified
1281
1281
  if (provisionedConcurrentExecutions !== undefined) {
@@ -2917,7 +2917,7 @@ class JaypieNextJs extends Construct {
2917
2917
  });
2918
2918
  // Add table name to environment if there's exactly one table
2919
2919
  if (tables.length === 1) {
2920
- nextjs.serverFunction.lambdaFunction.addEnvironment("CDK_ENV_DYNAMO_TABLE", tables[0].tableName);
2920
+ nextjs.serverFunction.lambdaFunction.addEnvironment("DYNAMODB_TABLE_NAME", tables[0].tableName);
2921
2921
  }
2922
2922
  // Store reference to nextjs for property exposure
2923
2923
  this._nextjs = nextjs;