cdk-nextjs 0.7.4 → 0.7.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/.jsii +37 -37
- package/docs/adapter-runtime.md +1 -1
- package/docs/harness-coverage.md +9 -8
- package/lib/adapter/adapter.mjs +220 -149
- package/lib/adapter/aws-cache-store.d.ts +28 -4
- package/lib/adapter/aws-cache-store.js +52 -21
- package/lib/adapter/aws-cache-store.test.js +36 -1
- package/lib/adapter/build-outputs.js +23 -1
- package/lib/adapter/build-outputs.test.js +18 -1
- package/lib/adapter/cache-handler.d.ts +4 -3
- package/lib/adapter/cache-handler.js +1 -1
- package/lib/adapter/cache-handler.mjs +131 -61
- package/lib/adapter/cache-handler.test.js +31 -1
- package/lib/adapter/cache-utils.d.ts +68 -2
- package/lib/adapter/cache-utils.js +108 -2
- package/lib/adapter/cache-utils.test.js +45 -1
- package/lib/adapter/init-cache.d.ts +1 -1
- package/lib/adapter/init-cache.js +60 -37
- package/lib/adapter/init-cache.test.js +55 -2
- package/lib/adapter/local-file-cache-handler.d.ts +2 -2
- package/lib/adapter/local-file-cache-handler.js +4 -5
- package/lib/adapter/s3-cache-handler.d.ts +23 -7
- package/lib/adapter/s3-cache-handler.js +63 -27
- package/lib/adapter/s3-cache-handler.test.js +168 -1
- package/lib/adapter/use-cache-default-handler.mjs +32 -9
- package/lib/adapter/use-cache-remote-handler.js +2 -3
- package/lib/adapter/use-cache-remote-handler.mjs +81 -61
- package/lib/nextjs-api.js +1 -1
- package/lib/nextjs-build/nextjs-build.d.ts +0 -7
- package/lib/nextjs-build/nextjs-build.js +4 -11
- package/lib/nextjs-build/nextjs-build.test.js +4 -3
- 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/image.d.ts +19 -0
- package/lib/runtime/image.js +28 -2
- package/lib/runtime/image.test.js +43 -1
- package/lib/runtime/lambda.mjs +14 -3
- package/lib/runtime/server.mjs +14 -3
- package/lib/utils/deployment-build-id.d.ts +11 -0
- package/lib/utils/deployment-build-id.js +15 -0
- package/package.json +3 -3
- package/scripts/e2e-harness/README.md +1 -1
package/.jsii
CHANGED
|
@@ -10157,7 +10157,7 @@
|
|
|
10157
10157
|
},
|
|
10158
10158
|
"locationInModule": {
|
|
10159
10159
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10160
|
-
"line":
|
|
10160
|
+
"line": 277
|
|
10161
10161
|
},
|
|
10162
10162
|
"parameters": [
|
|
10163
10163
|
{
|
|
@@ -10183,7 +10183,7 @@
|
|
|
10183
10183
|
"kind": "class",
|
|
10184
10184
|
"locationInModule": {
|
|
10185
10185
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10186
|
-
"line":
|
|
10186
|
+
"line": 175
|
|
10187
10187
|
},
|
|
10188
10188
|
"name": "NextjsBuild",
|
|
10189
10189
|
"properties": [
|
|
@@ -10195,7 +10195,7 @@
|
|
|
10195
10195
|
},
|
|
10196
10196
|
"locationInModule": {
|
|
10197
10197
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10198
|
-
"line":
|
|
10198
|
+
"line": 272
|
|
10199
10199
|
},
|
|
10200
10200
|
"name": "architecture",
|
|
10201
10201
|
"type": {
|
|
@@ -10210,7 +10210,7 @@
|
|
|
10210
10210
|
},
|
|
10211
10211
|
"locationInModule": {
|
|
10212
10212
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10213
|
-
"line":
|
|
10213
|
+
"line": 196
|
|
10214
10214
|
},
|
|
10215
10215
|
"name": "buildId",
|
|
10216
10216
|
"type": {
|
|
@@ -10225,7 +10225,7 @@
|
|
|
10225
10225
|
},
|
|
10226
10226
|
"locationInModule": {
|
|
10227
10227
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10228
|
-
"line":
|
|
10228
|
+
"line": 254
|
|
10229
10229
|
},
|
|
10230
10230
|
"name": "deploymentRoots",
|
|
10231
10231
|
"type": {
|
|
@@ -10244,7 +10244,7 @@
|
|
|
10244
10244
|
},
|
|
10245
10245
|
"locationInModule": {
|
|
10246
10246
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10247
|
-
"line":
|
|
10247
|
+
"line": 217
|
|
10248
10248
|
},
|
|
10249
10249
|
"name": "dotNextPath",
|
|
10250
10250
|
"type": {
|
|
@@ -10259,7 +10259,7 @@
|
|
|
10259
10259
|
},
|
|
10260
10260
|
"locationInModule": {
|
|
10261
10261
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10262
|
-
"line":
|
|
10262
|
+
"line": 260
|
|
10263
10263
|
},
|
|
10264
10264
|
"name": "functionGroupBehaviors",
|
|
10265
10265
|
"type": {
|
|
@@ -10279,7 +10279,7 @@
|
|
|
10279
10279
|
},
|
|
10280
10280
|
"locationInModule": {
|
|
10281
10281
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10282
|
-
"line":
|
|
10282
|
+
"line": 201
|
|
10283
10283
|
},
|
|
10284
10284
|
"name": "initCacheDir",
|
|
10285
10285
|
"type": {
|
|
@@ -10294,7 +10294,7 @@
|
|
|
10294
10294
|
},
|
|
10295
10295
|
"locationInModule": {
|
|
10296
10296
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10297
|
-
"line":
|
|
10297
|
+
"line": 235
|
|
10298
10298
|
},
|
|
10299
10299
|
"name": "nextConfigAssetPrefix",
|
|
10300
10300
|
"type": {
|
|
@@ -10309,7 +10309,7 @@
|
|
|
10309
10309
|
},
|
|
10310
10310
|
"locationInModule": {
|
|
10311
10311
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10312
|
-
"line":
|
|
10312
|
+
"line": 246
|
|
10313
10313
|
},
|
|
10314
10314
|
"name": "nextConfigAssetPrefixPath",
|
|
10315
10315
|
"type": {
|
|
@@ -10323,7 +10323,7 @@
|
|
|
10323
10323
|
},
|
|
10324
10324
|
"locationInModule": {
|
|
10325
10325
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10326
|
-
"line":
|
|
10326
|
+
"line": 224
|
|
10327
10327
|
},
|
|
10328
10328
|
"name": "nextConfigBasePath",
|
|
10329
10329
|
"type": {
|
|
@@ -10339,7 +10339,7 @@
|
|
|
10339
10339
|
},
|
|
10340
10340
|
"locationInModule": {
|
|
10341
10341
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10342
|
-
"line":
|
|
10342
|
+
"line": 206
|
|
10343
10343
|
},
|
|
10344
10344
|
"name": "publicDirEntries",
|
|
10345
10345
|
"type": {
|
|
@@ -10359,7 +10359,7 @@
|
|
|
10359
10359
|
},
|
|
10360
10360
|
"locationInModule": {
|
|
10361
10361
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10362
|
-
"line":
|
|
10362
|
+
"line": 213
|
|
10363
10363
|
},
|
|
10364
10364
|
"name": "relativePathToEntrypoint",
|
|
10365
10365
|
"type": {
|
|
@@ -10374,7 +10374,7 @@
|
|
|
10374
10374
|
},
|
|
10375
10375
|
"locationInModule": {
|
|
10376
10376
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10377
|
-
"line":
|
|
10377
|
+
"line": 267
|
|
10378
10378
|
},
|
|
10379
10379
|
"name": "relativeProjectDir",
|
|
10380
10380
|
"type": {
|
|
@@ -10394,7 +10394,7 @@
|
|
|
10394
10394
|
"kind": "interface",
|
|
10395
10395
|
"locationInModule": {
|
|
10396
10396
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10397
|
-
"line":
|
|
10397
|
+
"line": 78
|
|
10398
10398
|
},
|
|
10399
10399
|
"name": "NextjsBuildProps",
|
|
10400
10400
|
"properties": [
|
|
@@ -10407,7 +10407,7 @@
|
|
|
10407
10407
|
"immutable": true,
|
|
10408
10408
|
"locationInModule": {
|
|
10409
10409
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10410
|
-
"line":
|
|
10410
|
+
"line": 87
|
|
10411
10411
|
},
|
|
10412
10412
|
"name": "buildDirectory",
|
|
10413
10413
|
"type": {
|
|
@@ -10422,7 +10422,7 @@
|
|
|
10422
10422
|
"immutable": true,
|
|
10423
10423
|
"locationInModule": {
|
|
10424
10424
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10425
|
-
"line":
|
|
10425
|
+
"line": 88
|
|
10426
10426
|
},
|
|
10427
10427
|
"name": "nextjsType",
|
|
10428
10428
|
"type": {
|
|
@@ -10440,7 +10440,7 @@
|
|
|
10440
10440
|
"immutable": true,
|
|
10441
10441
|
"locationInModule": {
|
|
10442
10442
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10443
|
-
"line":
|
|
10443
|
+
"line": 104
|
|
10444
10444
|
},
|
|
10445
10445
|
"name": "architecture",
|
|
10446
10446
|
"optional": true,
|
|
@@ -10457,7 +10457,7 @@
|
|
|
10457
10457
|
"immutable": true,
|
|
10458
10458
|
"locationInModule": {
|
|
10459
10459
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10460
|
-
"line":
|
|
10460
|
+
"line": 82
|
|
10461
10461
|
},
|
|
10462
10462
|
"name": "buildCommand",
|
|
10463
10463
|
"optional": true,
|
|
@@ -10475,7 +10475,7 @@
|
|
|
10475
10475
|
"immutable": true,
|
|
10476
10476
|
"locationInModule": {
|
|
10477
10477
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10478
|
-
"line":
|
|
10478
|
+
"line": 97
|
|
10479
10479
|
},
|
|
10480
10480
|
"name": "functionGroups",
|
|
10481
10481
|
"optional": true,
|
|
@@ -10497,7 +10497,7 @@
|
|
|
10497
10497
|
"immutable": true,
|
|
10498
10498
|
"locationInModule": {
|
|
10499
10499
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
10500
|
-
"line":
|
|
10500
|
+
"line": 92
|
|
10501
10501
|
},
|
|
10502
10502
|
"name": "skipBuild",
|
|
10503
10503
|
"optional": true,
|
|
@@ -11235,7 +11235,7 @@
|
|
|
11235
11235
|
"kind": "interface",
|
|
11236
11236
|
"locationInModule": {
|
|
11237
11237
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11238
|
-
"line":
|
|
11238
|
+
"line": 117
|
|
11239
11239
|
},
|
|
11240
11240
|
"name": "NextjsDeploymentRoot",
|
|
11241
11241
|
"properties": [
|
|
@@ -11249,7 +11249,7 @@
|
|
|
11249
11249
|
"immutable": true,
|
|
11250
11250
|
"locationInModule": {
|
|
11251
11251
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11252
|
-
"line":
|
|
11252
|
+
"line": 122
|
|
11253
11253
|
},
|
|
11254
11254
|
"name": "name",
|
|
11255
11255
|
"type": {
|
|
@@ -11265,7 +11265,7 @@
|
|
|
11265
11265
|
"immutable": true,
|
|
11266
11266
|
"locationInModule": {
|
|
11267
11267
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11268
|
-
"line":
|
|
11268
|
+
"line": 124
|
|
11269
11269
|
},
|
|
11270
11270
|
"name": "path",
|
|
11271
11271
|
"type": {
|
|
@@ -11282,7 +11282,7 @@
|
|
|
11282
11282
|
"immutable": true,
|
|
11283
11283
|
"locationInModule": {
|
|
11284
11284
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11285
|
-
"line":
|
|
11285
|
+
"line": 130
|
|
11286
11286
|
},
|
|
11287
11287
|
"name": "routes",
|
|
11288
11288
|
"type": {
|
|
@@ -11959,7 +11959,7 @@
|
|
|
11959
11959
|
"kind": "interface",
|
|
11960
11960
|
"locationInModule": {
|
|
11961
11961
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11962
|
-
"line":
|
|
11962
|
+
"line": 137
|
|
11963
11963
|
},
|
|
11964
11964
|
"name": "NextjsFunctionGroupBehavior",
|
|
11965
11965
|
"properties": [
|
|
@@ -11972,7 +11972,7 @@
|
|
|
11972
11972
|
"immutable": true,
|
|
11973
11973
|
"locationInModule": {
|
|
11974
11974
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11975
|
-
"line":
|
|
11975
|
+
"line": 139
|
|
11976
11976
|
},
|
|
11977
11977
|
"name": "group",
|
|
11978
11978
|
"type": {
|
|
@@ -11988,7 +11988,7 @@
|
|
|
11988
11988
|
"immutable": true,
|
|
11989
11989
|
"locationInModule": {
|
|
11990
11990
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
11991
|
-
"line":
|
|
11991
|
+
"line": 151
|
|
11992
11992
|
},
|
|
11993
11993
|
"name": "pattern",
|
|
11994
11994
|
"type": {
|
|
@@ -12004,7 +12004,7 @@
|
|
|
12004
12004
|
"immutable": true,
|
|
12005
12005
|
"locationInModule": {
|
|
12006
12006
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
12007
|
-
"line":
|
|
12007
|
+
"line": 145
|
|
12008
12008
|
},
|
|
12009
12009
|
"name": "route",
|
|
12010
12010
|
"type": {
|
|
@@ -12116,7 +12116,7 @@
|
|
|
12116
12116
|
"kind": "interface",
|
|
12117
12117
|
"locationInModule": {
|
|
12118
12118
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
12119
|
-
"line":
|
|
12119
|
+
"line": 111
|
|
12120
12120
|
},
|
|
12121
12121
|
"name": "NextjsFunctionGroupRoutes",
|
|
12122
12122
|
"properties": [
|
|
@@ -12128,7 +12128,7 @@
|
|
|
12128
12128
|
"immutable": true,
|
|
12129
12129
|
"locationInModule": {
|
|
12130
12130
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
12131
|
-
"line":
|
|
12131
|
+
"line": 112
|
|
12132
12132
|
},
|
|
12133
12133
|
"name": "name",
|
|
12134
12134
|
"type": {
|
|
@@ -12143,7 +12143,7 @@
|
|
|
12143
12143
|
"immutable": true,
|
|
12144
12144
|
"locationInModule": {
|
|
12145
12145
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
12146
|
-
"line":
|
|
12146
|
+
"line": 113
|
|
12147
12147
|
},
|
|
12148
12148
|
"name": "routes",
|
|
12149
12149
|
"type": {
|
|
@@ -19837,7 +19837,7 @@
|
|
|
19837
19837
|
"kind": "interface",
|
|
19838
19838
|
"locationInModule": {
|
|
19839
19839
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
19840
|
-
"line":
|
|
19840
|
+
"line": 166
|
|
19841
19841
|
},
|
|
19842
19842
|
"name": "PublicDirEntry",
|
|
19843
19843
|
"properties": [
|
|
@@ -19849,7 +19849,7 @@
|
|
|
19849
19849
|
"immutable": true,
|
|
19850
19850
|
"locationInModule": {
|
|
19851
19851
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
19852
|
-
"line":
|
|
19852
|
+
"line": 168
|
|
19853
19853
|
},
|
|
19854
19854
|
"name": "isDirectory",
|
|
19855
19855
|
"type": {
|
|
@@ -19864,7 +19864,7 @@
|
|
|
19864
19864
|
"immutable": true,
|
|
19865
19865
|
"locationInModule": {
|
|
19866
19866
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
19867
|
-
"line":
|
|
19867
|
+
"line": 167
|
|
19868
19868
|
},
|
|
19869
19869
|
"name": "name",
|
|
19870
19870
|
"type": {
|
|
@@ -19875,6 +19875,6 @@
|
|
|
19875
19875
|
"symbolId": "src/nextjs-build/nextjs-build:PublicDirEntry"
|
|
19876
19876
|
}
|
|
19877
19877
|
},
|
|
19878
|
-
"version": "0.7.
|
|
19879
|
-
"fingerprint": "
|
|
19878
|
+
"version": "0.7.6",
|
|
19879
|
+
"fingerprint": "+fjd+aMvDjrql76TICkdEA1y6IW7J6L6dK7R34uvkEw="
|
|
19880
19880
|
}
|
package/docs/adapter-runtime.md
CHANGED
|
@@ -5,7 +5,7 @@ build time, what runs per request, where it knowingly differs from `next start`,
|
|
|
5
5
|
and what each deployment type cannot do. The reasoning behind individual
|
|
6
6
|
decisions lives in the code comments next to them; this is the map.
|
|
7
7
|
|
|
8
|
-
Written against Next.js 16.3.
|
|
8
|
+
Written against Next.js 16.3.8. `@next/routing` is exact-pinned to the `next`
|
|
9
9
|
version and bumped with it.
|
|
10
10
|
|
|
11
11
|
## Build time: `onBuildComplete`
|
package/docs/harness-coverage.md
CHANGED
|
@@ -29,22 +29,23 @@ as a regression test once fixed.
|
|
|
29
29
|
|
|
30
30
|
## Status
|
|
31
31
|
|
|
32
|
-
As of 2026-
|
|
32
|
+
As of 2026-10-05, against next.js 16.3.8. The screening funnel lives in the
|
|
33
33
|
manifest's `screening` block, regenerated by
|
|
34
34
|
`node scripts/e2e-harness/screen.mjs --next ../next.js --write` (`--check` to
|
|
35
35
|
verify, which every e2e-harness run does in shard 1).
|
|
36
36
|
|
|
37
|
-
| Of next.js's
|
|
37
|
+
| Of next.js's 1136 e2e files | Count |
|
|
38
38
|
| ----------------------------- | ----- |
|
|
39
|
-
| edge-free (the hard ceiling) |
|
|
40
|
-
| candidates after every screen | **
|
|
39
|
+
| edge-free (the hard ceiling) | 933 |
|
|
40
|
+
| candidates after every screen | **1** |
|
|
41
41
|
| deployed and screened | 472 |
|
|
42
42
|
| in `rules.include` | 427 |
|
|
43
43
|
| plus, per-case, in `suites` | 10 |
|
|
44
44
|
|
|
45
|
-
The candidate pool is
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
The candidate pool is one file, `app-dir/nsec-105-opengraph-image-dynamicparams`,
|
|
46
|
+
new in 16.3.8 and not yet deployed. Every other file is included, included
|
|
47
|
+
per-case, or disqualified by a screen, and every disqualification that is a
|
|
48
|
+
cdk-nextjs decision has a verdict below. The job now is keeping that true as next.js adds files and as
|
|
48
49
|
each scheduled run re-runs what is already included.
|
|
49
50
|
|
|
50
51
|
| Verdict | Files |
|
|
@@ -300,7 +301,7 @@ legacy edge `middleware.ts`. The check throws during `next build`, so a fixture
|
|
|
300
301
|
with _any_ edge route or legacy middleware fails wholesale and `suites` cannot
|
|
301
302
|
rescue it. Both spellings count: `export const runtime = 'edge'` and
|
|
302
303
|
`export const config = { runtime: 'experimental-edge' }` — screening only the first
|
|
303
|
-
undercounts. 203 of
|
|
304
|
+
undercounts. 203 of 1136 files are disqualified this way.
|
|
304
305
|
|
|
305
306
|
| File | Why |
|
|
306
307
|
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|