@codedazur/cdk-next-app 0.3.1 → 0.3.3
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/CHANGELOG.md +16 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @codedazur/cdk-next-app
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ddef1e0`](https://github.com/codedazur/toolkit/commit/361f03c2aafe7a2bc04789b433c99ca79350da2a)]:
|
|
8
|
+
- @codedazur/cdk-docker-cluster@0.9.5
|
|
9
|
+
|
|
10
|
+
## 0.3.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`55ddf9b`](https://github.com/codedazur/toolkit/commit/55ddf9b6d47be519a7ad7a932d20ec1526b5d1e2) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The default api behavior is no longer overridden.
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`55ddf9b`](https://github.com/codedazur/toolkit/commit/55ddf9b6d47be519a7ad7a932d20ec1526b5d1e2)]:
|
|
17
|
+
- @codedazur/cdk-docker-cluster@0.9.4
|
|
18
|
+
|
|
3
19
|
## 0.3.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ interface NextAppProps extends DockerClusterProps {
|
|
|
12
12
|
* @see https://bitbucket.org/codedazur/cdk-constructs/src/v5.14.0/src/NextSite/NextSite.ts
|
|
13
13
|
*/
|
|
14
14
|
declare class NextApp extends DockerCluster {
|
|
15
|
-
constructor(scope: Construct, id: string, { source, service: { port, ...service }, ...props }: NextAppProps);
|
|
15
|
+
constructor(scope: Construct, id: string, { source, service: { port, ...service }, distribution, ...props }: NextAppProps);
|
|
16
16
|
protected static withNpmSecret(source: NextAppProps["source"]): ContainerImage | {
|
|
17
17
|
secrets: {
|
|
18
18
|
npmrc: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface NextAppProps extends DockerClusterProps {
|
|
|
12
12
|
* @see https://bitbucket.org/codedazur/cdk-constructs/src/v5.14.0/src/NextSite/NextSite.ts
|
|
13
13
|
*/
|
|
14
14
|
declare class NextApp extends DockerCluster {
|
|
15
|
-
constructor(scope: Construct, id: string, { source, service: { port, ...service }, ...props }: NextAppProps);
|
|
15
|
+
constructor(scope: Construct, id: string, { source, service: { port, ...service }, distribution, ...props }: NextAppProps);
|
|
16
16
|
protected static withNpmSecret(source: NextAppProps["source"]): ContainerImage | {
|
|
17
17
|
secrets: {
|
|
18
18
|
npmrc: string;
|
package/dist/index.js
CHANGED
|
@@ -44,26 +44,27 @@ var NextApp = class _NextApp extends import_cdk_docker_cluster.DockerCluster {
|
|
|
44
44
|
constructor(scope, id, {
|
|
45
45
|
source,
|
|
46
46
|
service: { port = 3e3, ...service } = {},
|
|
47
|
+
distribution,
|
|
47
48
|
...props
|
|
48
49
|
}) {
|
|
49
|
-
var _a
|
|
50
|
+
var _a;
|
|
50
51
|
super(scope, id, {
|
|
51
52
|
source: _NextApp.withNpmSecret(source),
|
|
53
|
+
...props,
|
|
52
54
|
service: {
|
|
53
55
|
port,
|
|
54
56
|
...service
|
|
55
57
|
},
|
|
56
58
|
distribution: {
|
|
57
|
-
...
|
|
59
|
+
...distribution,
|
|
58
60
|
behaviors: {
|
|
59
|
-
...
|
|
61
|
+
...distribution == null ? void 0 : distribution.behaviors,
|
|
60
62
|
"/api/*": {
|
|
61
63
|
authentication: false,
|
|
62
|
-
...(
|
|
64
|
+
...(_a = distribution == null ? void 0 : distribution.behaviors) == null ? void 0 : _a["/api/*"]
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
}
|
|
66
|
-
...props
|
|
67
|
+
}
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
static withNpmSecret(source) {
|
package/dist/index.mjs
CHANGED
|
@@ -10,26 +10,27 @@ var NextApp = class _NextApp extends DockerCluster {
|
|
|
10
10
|
constructor(scope, id, {
|
|
11
11
|
source,
|
|
12
12
|
service: { port = 3e3, ...service } = {},
|
|
13
|
+
distribution,
|
|
13
14
|
...props
|
|
14
15
|
}) {
|
|
15
|
-
var _a
|
|
16
|
+
var _a;
|
|
16
17
|
super(scope, id, {
|
|
17
18
|
source: _NextApp.withNpmSecret(source),
|
|
19
|
+
...props,
|
|
18
20
|
service: {
|
|
19
21
|
port,
|
|
20
22
|
...service
|
|
21
23
|
},
|
|
22
24
|
distribution: {
|
|
23
|
-
...
|
|
25
|
+
...distribution,
|
|
24
26
|
behaviors: {
|
|
25
|
-
...
|
|
27
|
+
...distribution == null ? void 0 : distribution.behaviors,
|
|
26
28
|
"/api/*": {
|
|
27
29
|
authentication: false,
|
|
28
|
-
...(
|
|
30
|
+
...(_a = distribution == null ? void 0 : distribution.behaviors) == null ? void 0 : _a["/api/*"]
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
|
-
}
|
|
32
|
-
...props
|
|
33
|
+
}
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
static withNpmSecret(source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codedazur/cdk-next-app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"main": ".dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"constructs": ">=10"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@codedazur/cdk-docker-cluster": "^0.9.
|
|
30
|
+
"@codedazur/cdk-docker-cluster": "^0.9.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.14.10",
|