cdk-nextjs 0.7.14 → 0.7.15
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 +2 -2
- package/lib/adapter/adapter.mjs +1 -1
- package/lib/nextjs-api.js +1 -1
- package/lib/nextjs-build/nextjs-build.js +1 -1
- package/lib/nextjs-cache.js +1 -1
- package/lib/nextjs-compute/nextjs-containers.js +1 -1
- package/lib/nextjs-compute/nextjs-functions.js +1 -1
- package/lib/nextjs-distribution.js +1 -1
- package/lib/nextjs-post-deploy.js +1 -1
- package/lib/nextjs-static-assets.js +1 -1
- package/lib/root-constructs/nextjs-base-construct.js +1 -1
- package/lib/root-constructs/nextjs-global-containers.js +1 -1
- package/lib/root-constructs/nextjs-global-functions.js +1 -1
- package/lib/root-constructs/nextjs-regional-containers.js +1 -1
- package/lib/root-constructs/nextjs-regional-functions.js +1 -1
- package/lib/runtime/core.js +4 -6
- package/lib/runtime/http/response.d.ts +0 -6
- package/lib/runtime/http/response.js +1 -7
- package/lib/runtime/http/sink.js +10 -6
- package/lib/runtime/http/sink.test.js +45 -13
- package/lib/runtime/lambda.mjs +2 -10
- package/lib/runtime/server.mjs +2 -10
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -20175,6 +20175,6 @@
|
|
|
20175
20175
|
"symbolId": "src/nextjs-build/nextjs-build:PublicDirEntry"
|
|
20176
20176
|
}
|
|
20177
20177
|
},
|
|
20178
|
-
"version": "0.7.
|
|
20179
|
-
"fingerprint": "
|
|
20178
|
+
"version": "0.7.15",
|
|
20179
|
+
"fingerprint": "YeYjucizVBzzOWcH5H2BAJpJ5BMwJwP068jsPt1K+Rc="
|
|
20180
20180
|
}
|
package/lib/adapter/adapter.mjs
CHANGED
package/lib/nextjs-api.js
CHANGED
|
@@ -22,7 +22,7 @@ const API_PATH_PART = /^[a-zA-Z0-9:._\-$]+$/;
|
|
|
22
22
|
* Creates an API Gateway REST API for Next.js applications
|
|
23
23
|
*/
|
|
24
24
|
class NextjsApi extends constructs_1.Construct {
|
|
25
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsApi", version: "0.7.
|
|
25
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsApi", version: "0.7.15" };
|
|
26
26
|
/**
|
|
27
27
|
* The API Gateway REST API
|
|
28
28
|
*/
|
|
@@ -66,7 +66,7 @@ function deploymentArchitecture(props) {
|
|
|
66
66
|
* @link https://nextjs.org/docs/pages/api-reference/next-config-js/output
|
|
67
67
|
*/
|
|
68
68
|
class NextjsBuild extends constructs_1.Construct {
|
|
69
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBuild", version: "0.7.
|
|
69
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBuild", version: "0.7.15" };
|
|
70
70
|
/**
|
|
71
71
|
* Unique id for this deployment. Used to partition cache storage and as
|
|
72
72
|
* metadata for static assets in S3 bucket.
|
package/lib/nextjs-cache.js
CHANGED
|
@@ -86,7 +86,7 @@ function sizeOfDirectory(dir) {
|
|
|
86
86
|
* Next.js Cache construct providing unified S3 and DynamoDB cache management.
|
|
87
87
|
*/
|
|
88
88
|
class NextjsCache extends constructs_1.Construct {
|
|
89
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsCache", version: "0.7.
|
|
89
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsCache", version: "0.7.15" };
|
|
90
90
|
cacheBucket;
|
|
91
91
|
revalidationTable;
|
|
92
92
|
buildId;
|
|
@@ -19,7 +19,7 @@ const constants_1 = require("../constants");
|
|
|
19
19
|
* Fargate.
|
|
20
20
|
*/
|
|
21
21
|
class NextjsContainers extends constructs_1.Construct {
|
|
22
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsContainers", version: "0.7.
|
|
22
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsContainers", version: "0.7.15" };
|
|
23
23
|
albFargateService;
|
|
24
24
|
ecsCluster;
|
|
25
25
|
url;
|
|
@@ -23,7 +23,7 @@ const zip_directory_1 = require("../utils/zip-directory");
|
|
|
23
23
|
* `awslambda.streamifyResponse` directly.
|
|
24
24
|
*/
|
|
25
25
|
class NextjsFunctions extends constructs_1.Construct {
|
|
26
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsFunctions", version: "0.7.
|
|
26
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsFunctions", version: "0.7.15" };
|
|
27
27
|
/**
|
|
28
28
|
* The `default` group's function: the one the distribution's default behavior
|
|
29
29
|
* targets, and the only one at all unless `functionGroups` is used.
|
|
@@ -12,7 +12,7 @@ const constants_1 = require("./constants");
|
|
|
12
12
|
const base_path_1 = require("./utils/base-path");
|
|
13
13
|
const viewer_request_functions_1 = require("./utils/viewer-request-functions");
|
|
14
14
|
class NextjsDistribution extends constructs_1.Construct {
|
|
15
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsDistribution", version: "0.7.
|
|
15
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsDistribution", version: "0.7.15" };
|
|
16
16
|
distribution;
|
|
17
17
|
props;
|
|
18
18
|
/**
|
|
@@ -18,7 +18,7 @@ const base_path_1 = require("./utils/base-path");
|
|
|
18
18
|
* current build id AND are older than `msTtl`
|
|
19
19
|
*/
|
|
20
20
|
class NextjsPostDeploy extends constructs_1.Construct {
|
|
21
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsPostDeploy", version: "0.7.
|
|
21
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsPostDeploy", version: "0.7.15" };
|
|
22
22
|
customResource;
|
|
23
23
|
lambdaFunction;
|
|
24
24
|
props;
|
|
@@ -112,7 +112,7 @@ function isWithin(path, dir) {
|
|
|
112
112
|
* Creates S3 Bucket for public and _next/static assets and deploys them using S3Deployment.
|
|
113
113
|
*/
|
|
114
114
|
class NextjsStaticAssets extends constructs_1.Construct {
|
|
115
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsStaticAssets", version: "0.7.
|
|
115
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsStaticAssets", version: "0.7.15" };
|
|
116
116
|
bucket;
|
|
117
117
|
/**
|
|
118
118
|
* The first of `staticDeployment`, `serviceWorkerDeployment` and
|
|
@@ -15,7 +15,7 @@ const base_path_1 = require("../utils/base-path");
|
|
|
15
15
|
* Base class for all Next.js root constructs
|
|
16
16
|
*/
|
|
17
17
|
class NextjsBaseConstruct extends constructs_1.Construct {
|
|
18
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBaseConstruct", version: "0.7.
|
|
18
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsBaseConstruct", version: "0.7.15" };
|
|
19
19
|
nextjsBuild;
|
|
20
20
|
nextjsStaticAssets;
|
|
21
21
|
nextjsCache;
|
|
@@ -14,7 +14,7 @@ const base_path_1 = require("../utils/base-path");
|
|
|
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.7.
|
|
17
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalContainers", version: "0.7.15" };
|
|
18
18
|
nextjsContainers;
|
|
19
19
|
nextjsDistribution;
|
|
20
20
|
nextjsPostDeploy;
|
|
@@ -17,7 +17,7 @@ const base_path_1 = require("../utils/base-path");
|
|
|
17
17
|
* for functions.
|
|
18
18
|
*/
|
|
19
19
|
class NextjsGlobalFunctions extends nextjs_base_construct_1.NextjsBaseConstruct {
|
|
20
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalFunctions", version: "0.7.
|
|
20
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsGlobalFunctions", version: "0.7.15" };
|
|
21
21
|
nextjsFunctions;
|
|
22
22
|
nextjsDistribution;
|
|
23
23
|
nextjsPostDeploy;
|
|
@@ -13,7 +13,7 @@ const base_path_1 = require("../utils/base-path");
|
|
|
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.7.
|
|
16
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalContainers", version: "0.7.15" };
|
|
17
17
|
nextjsContainers;
|
|
18
18
|
nextjsPostDeploy;
|
|
19
19
|
/**
|
|
@@ -11,7 +11,7 @@ const nextjs_base_construct_1 = require("./nextjs-base-construct");
|
|
|
11
11
|
* for routing requests and AWS Lambda Functions for server-side rendering.
|
|
12
12
|
*/
|
|
13
13
|
class NextjsRegionalFunctions extends nextjs_base_construct_1.NextjsBaseConstruct {
|
|
14
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalFunctions", version: "0.7.
|
|
14
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-nextjs.NextjsRegionalFunctions", version: "0.7.15" };
|
|
15
15
|
nextjsFunctions;
|
|
16
16
|
nextjsApi;
|
|
17
17
|
nextjsPostDeploy;
|