cdk-nextjs 0.5.12 → 0.5.14

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/.jsii CHANGED
@@ -19554,6 +19554,6 @@
19554
19554
  "symbolId": "src/nextjs-build/nextjs-build:PublicDirEntry"
19555
19555
  }
19556
19556
  },
19557
- "version": "0.5.12",
19558
- "fingerprint": "OdQAt2TUMrIQ+mC9hfHKmq+EuC65rtpgyq1NR2tRT58="
19557
+ "version": "0.5.14",
19558
+ "fingerprint": "ZAwqy7hLHP/sTdHxOb6FvaWCaf+iVI462Mp3n+HkypE="
19559
19559
  }
package/lib/nextjs-api.js CHANGED
@@ -10,7 +10,7 @@ const constructs_1 = require("constructs");
10
10
  * Creates an API Gateway REST API for Next.js applications
11
11
  */
12
12
  class NextjsApi extends constructs_1.Construct {
13
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsApi", version: "0.5.12" };
13
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsApi", version: "0.5.14" };
14
14
  /**
15
15
  * The API Gateway REST API
16
16
  */
@@ -19,6 +19,8 @@ RUN adduser --system --uid 1001 nextjs
19
19
  ARG RELATIVE_PATH_TO_PACKAGE
20
20
  # Copy from local build output instead of builder image
21
21
  COPY --chown=nextjs:nodejs .next/standalone ./
22
+ # Copy .next/static so image optimization can read imported images (e.g. /_next/static/media/*)
23
+ COPY --chown=nextjs:nodejs .next/static ./$RELATIVE_PATH_TO_PACKAGE/.next/static
22
24
  # Copy public directory for image optimization (Next.js needs source images)
23
25
  COPY --chown=nextjs:nodejs public ./$RELATIVE_PATH_TO_PACKAGE/public
24
26
 
@@ -17,6 +17,8 @@ RUN adduser --system --uid 1001 nextjs
17
17
  ARG RELATIVE_PATH_TO_PACKAGE
18
18
  # Copy from local build output instead of builder image
19
19
  COPY --chown=nextjs:nodejs .next/standalone ./
20
+ # Copy .next/static so image optimization can read imported images (e.g. /_next/static/media/*)
21
+ COPY --chown=nextjs:nodejs .next/static ./$RELATIVE_PATH_TO_PACKAGE/.next/static
20
22
  # Copy public directory for image optimization (Next.js needs source images)
21
23
  COPY --chown=nextjs:nodejs public ./$RELATIVE_PATH_TO_PACKAGE/public
22
24
 
@@ -21,7 +21,7 @@ const debug = (0, debug_1.default)("cdk-nextjs:nextjs-build");
21
21
  * @link https://nextjs.org/docs/pages/api-reference/next-config-js/output
22
22
  */
23
23
  class NextjsBuild extends constructs_1.Construct {
24
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBuild", version: "0.5.12" };
24
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBuild", version: "0.5.14" };
25
25
  /**
26
26
  * Unique id for Next.js build. Used to partition cache storage and as
27
27
  * metadata for static assets in S3 bucket.
@@ -13,7 +13,7 @@ const constants_1 = require("./constants");
13
13
  * Next.js Cache construct providing unified S3 and DynamoDB cache management.
14
14
  */
15
15
  class NextjsCache extends constructs_1.Construct {
16
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsCache", version: "0.5.12" };
16
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsCache", version: "0.5.14" };
17
17
  cacheBucket;
18
18
  revalidationTable;
19
19
  buildId;
@@ -18,7 +18,7 @@ const constants_1 = require("../constants");
18
18
  * Fargate.
19
19
  */
20
20
  class NextjsContainers extends constructs_1.Construct {
21
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsContainers", version: "0.5.12" };
21
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsContainers", version: "0.5.14" };
22
22
  albFargateService;
23
23
  ecsCluster;
24
24
  url;
@@ -15,7 +15,7 @@ const get_architecture_1 = require("../utils/get-architecture");
15
15
  * Run Next.js in functions on AWS with AWS Lambda.
16
16
  */
17
17
  class NextjsFunctions extends constructs_1.Construct {
18
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsFunctions", version: "0.5.12" };
18
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsFunctions", version: "0.5.14" };
19
19
  function;
20
20
  functionUrl;
21
21
  props;
@@ -8,7 +8,7 @@ const aws_cloudfront_origins_1 = require("aws-cdk-lib/aws-cloudfront-origins");
8
8
  const constructs_1 = require("constructs");
9
9
  const constants_1 = require("./constants");
10
10
  class NextjsDistribution extends constructs_1.Construct {
11
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsDistribution", version: "0.5.12" };
11
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsDistribution", version: "0.5.14" };
12
12
  distribution;
13
13
  props;
14
14
  /**
@@ -17,7 +17,7 @@ const get_architecture_1 = require("./utils/get-architecture");
17
17
  * current build id AND are older than `msTtl`
18
18
  */
19
19
  class NextjsPostDeploy extends constructs_1.Construct {
20
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsPostDeploy", version: "0.5.12" };
20
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsPostDeploy", version: "0.5.14" };
21
21
  customResource;
22
22
  lambdaFunction;
23
23
  props;
@@ -14,7 +14,7 @@ const constants_1 = require("./constants");
14
14
  * Creates S3 Bucket for public and _next/static assets and deploys them using S3Deployment.
15
15
  */
16
16
  class NextjsStaticAssets extends constructs_1.Construct {
17
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsStaticAssets", version: "0.5.12" };
17
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsStaticAssets", version: "0.5.14" };
18
18
  bucket;
19
19
  deployment;
20
20
  stagingDir;
@@ -11,7 +11,7 @@ const nextjs_static_assets_1 = require("../nextjs-static-assets");
11
11
  * Base class for all Next.js root constructs
12
12
  */
13
13
  class NextjsBaseConstruct extends constructs_1.Construct {
14
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBaseConstruct", version: "0.5.12" };
14
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBaseConstruct", version: "0.5.14" };
15
15
  nextjsBuild;
16
16
  nextjsStaticAssets;
17
17
  nextjsCache;
@@ -14,7 +14,7 @@ const nextjs_base_construct_1 = require("./nextjs-base-construct");
14
14
  * for containers.
15
15
  */
16
16
  class NextjsGlobalContainers extends nextjs_base_construct_1.NextjsBaseConstruct {
17
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalContainers", version: "0.5.12" };
17
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalContainers", version: "0.5.14" };
18
18
  nextjsContainers;
19
19
  nextjsDistribution;
20
20
  nextjsPostDeploy;
@@ -14,7 +14,7 @@ const nextjs_base_construct_1 = require("./nextjs-base-construct");
14
14
  * for functions.
15
15
  */
16
16
  class NextjsGlobalFunctions extends nextjs_base_construct_1.NextjsBaseConstruct {
17
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalFunctions", version: "0.5.12" };
17
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalFunctions", version: "0.5.14" };
18
18
  nextjsFunctions;
19
19
  nextjsDistribution;
20
20
  nextjsPostDeploy;
@@ -13,7 +13,7 @@ const nextjs_post_deploy_1 = require("../nextjs-post-deploy");
13
13
  * for containers.
14
14
  */
15
15
  class NextjsRegionalContainers extends nextjs_base_construct_1.NextjsBaseConstruct {
16
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalContainers", version: "0.5.12" };
16
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalContainers", version: "0.5.14" };
17
17
  nextjsContainers;
18
18
  nextjsPostDeploy;
19
19
  get url() {
@@ -13,7 +13,7 @@ const nextjs_post_deploy_1 = require("../nextjs-post-deploy");
13
13
  * for routing requests and AWS Lambda Functions for server-side rendering.
14
14
  */
15
15
  class NextjsRegionalFunctions extends nextjs_base_construct_1.NextjsBaseConstruct {
16
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalFunctions", version: "0.5.12" };
16
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalFunctions", version: "0.5.14" };
17
17
  nextjsFunctions;
18
18
  nextjsApi;
19
19
  nextjsPostDeploy;
package/package.json CHANGED
@@ -47,7 +47,7 @@
47
47
  "jsii-pacmak": "^1.140.0",
48
48
  "jsii-rosetta": "~5.9.63",
49
49
  "mime-types": "^2.1.35",
50
- "next": "^16.2.0",
50
+ "next": "^16.3.5",
51
51
  "prettier": "^3.9.6",
52
52
  "projen": "^0.101.6",
53
53
  "ts-jest": "^29.4.12",
@@ -80,7 +80,7 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "version": "0.5.12",
83
+ "version": "0.5.14",
84
84
  "jest": {
85
85
  "coverageProvider": "v8",
86
86
  "testPathIgnorePatterns": [