@codedazur/cdk-next-app 0.2.10 → 0.2.12
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 +14 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @codedazur/cdk-next-app
|
|
2
2
|
|
|
3
|
+
## 0.2.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`afec6fd`](https://github.com/codedazur/toolkit/commit/afec6fdb40cfbbb4dc118c2fa6caacf1345f7875)]:
|
|
8
|
+
- @codedazur/cdk-docker-cluster@0.9.1
|
|
9
|
+
|
|
10
|
+
## 0.2.11
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`c8d5f0b`](https://github.com/codedazur/toolkit/commit/c8d5f0b86cb3eb1677d51a4531e8bcc948f8ea4b)]:
|
|
15
|
+
- @codedazur/cdk-docker-cluster@0.9.0
|
|
16
|
+
|
|
3
17
|
## 0.2.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -7,6 +7,9 @@ interface NextAppProps extends DockerClusterProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* A docker cluster preconfigured for running a Next.js application with support
|
|
9
9
|
* for private NPM packages using a build-time secret.
|
|
10
|
+
*
|
|
11
|
+
* @todo Add specific distribution behaviors for the various Next.js features.
|
|
12
|
+
* @see https://bitbucket.org/codedazur/cdk-constructs/src/v5.14.0/src/NextSite/NextSite.ts
|
|
10
13
|
*/
|
|
11
14
|
declare class NextApp extends DockerCluster {
|
|
12
15
|
constructor(scope: Construct, id: string, { source, service: { port, ...service }, ...props }: NextAppProps);
|
|
@@ -19,6 +22,7 @@ declare class NextApp extends DockerCluster {
|
|
|
19
22
|
file?: string;
|
|
20
23
|
arguments?: Record<string, string>;
|
|
21
24
|
};
|
|
25
|
+
protected static npmSecret(): string;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
export { NextApp, type NextAppProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ interface NextAppProps extends DockerClusterProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* A docker cluster preconfigured for running a Next.js application with support
|
|
9
9
|
* for private NPM packages using a build-time secret.
|
|
10
|
+
*
|
|
11
|
+
* @todo Add specific distribution behaviors for the various Next.js features.
|
|
12
|
+
* @see https://bitbucket.org/codedazur/cdk-constructs/src/v5.14.0/src/NextSite/NextSite.ts
|
|
10
13
|
*/
|
|
11
14
|
declare class NextApp extends DockerCluster {
|
|
12
15
|
constructor(scope: Construct, id: string, { source, service: { port, ...service }, ...props }: NextAppProps);
|
|
@@ -19,6 +22,7 @@ declare class NextApp extends DockerCluster {
|
|
|
19
22
|
file?: string;
|
|
20
23
|
arguments?: Record<string, string>;
|
|
21
24
|
};
|
|
25
|
+
protected static npmSecret(): string;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
export { NextApp, type NextAppProps };
|
package/dist/index.js
CHANGED
|
@@ -63,18 +63,21 @@ var NextApp = class _NextApp extends import_cdk_docker_cluster.DockerCluster {
|
|
|
63
63
|
return {
|
|
64
64
|
directory: source,
|
|
65
65
|
secrets: {
|
|
66
|
-
npmrc:
|
|
66
|
+
npmrc: _NextApp.npmSecret()
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
return {
|
|
71
71
|
...source,
|
|
72
72
|
secrets: {
|
|
73
|
-
npmrc:
|
|
73
|
+
npmrc: _NextApp.npmSecret(),
|
|
74
74
|
...source.secrets
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
+
static npmSecret() {
|
|
79
|
+
return import_aws_cdk_lib.DockerBuildSecret.fromSrc(import_path.default.join(import_os.default.homedir(), ".npmrc"));
|
|
80
|
+
}
|
|
78
81
|
};
|
|
79
82
|
// Annotate the CommonJS export names for ESM import in node:
|
|
80
83
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -29,18 +29,21 @@ var NextApp = class _NextApp extends DockerCluster {
|
|
|
29
29
|
return {
|
|
30
30
|
directory: source,
|
|
31
31
|
secrets: {
|
|
32
|
-
npmrc:
|
|
32
|
+
npmrc: _NextApp.npmSecret()
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
...source,
|
|
38
38
|
secrets: {
|
|
39
|
-
npmrc:
|
|
39
|
+
npmrc: _NextApp.npmSecret(),
|
|
40
40
|
...source.secrets
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
+
static npmSecret() {
|
|
45
|
+
return DockerBuildSecret.fromSrc(path.join(os.homedir(), ".npmrc"));
|
|
46
|
+
}
|
|
44
47
|
};
|
|
45
48
|
export {
|
|
46
49
|
NextApp
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codedazur/cdk-next-app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"main": ".dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"constructs": ">=10"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@codedazur/cdk-docker-cluster": "^0.
|
|
30
|
+
"@codedazur/cdk-docker-cluster": "^0.9.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^20.14.
|
|
34
|
-
"aws-cdk-lib": "^2.
|
|
33
|
+
"@types/node": "^20.14.10",
|
|
34
|
+
"aws-cdk-lib": "^2.149.0",
|
|
35
35
|
"constructs": "^10.3.0",
|
|
36
|
-
"esbuild": "^0.
|
|
36
|
+
"esbuild": "^0.23.0"
|
|
37
37
|
}
|
|
38
38
|
}
|