@codedazur/cdk-next-app 0.2.1 → 0.2.2

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @codedazur/cdk-next-app
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`17d19aea004254b214364caef8fa02f9a6019f8f`](https://github.com/codedazur/toolkit/commit/17d19aea004254b214364caef8fa02f9a6019f8f) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The version of the DockerCluster dependency is now explicit.
8
+
9
+ - Updated dependencies [[`17d19aea004254b214364caef8fa02f9a6019f8f`](https://github.com/codedazur/toolkit/commit/17d19aea004254b214364caef8fa02f9a6019f8f)]:
10
+ - @codedazur/cdk-docker-cluster@0.4.0
11
+
3
12
  ## 0.2.1
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -2,11 +2,33 @@
2
2
 
3
3
  The NextApp CDK construct deploys a standalone Next.js build to a load balanced Fargate service on AWS.
4
4
 
5
+ It automatically mounts the `~/.npmrc` file as a build secret for installation of private NPM packages.
6
+
7
+ ## Prerequisites
8
+
9
+ ### Next.js Configuration
10
+
11
+ Your `next.config.js` file needs to be configured for standalone output.
12
+
13
+ ```js
14
+ // next.config.js
15
+ // ...
16
+ const nextConfig = {
17
+ // ...
18
+ output: "standalone",
19
+ }
20
+ // ...
21
+ ```
22
+
23
+ ### Docker
24
+
25
+ In order to use this construct, your Next.js application needs to be configure for Docker deployments. See the [official documentation](https://nextjs.org/docs/pages/building-your-application/deploying#docker-image) for more information.
26
+
5
27
  ## Example
6
28
 
7
29
  ### Standard Repository
8
30
 
9
- For a non-mnonorepo build, simply provide the path to the directory that contains your Dockerfile.
31
+ For a non-monorepo build, simply provide the path to the directory that contains your Dockerfile.
10
32
 
11
33
  ```ts
12
34
  new NextApp(this, "NextApp", {
@@ -31,13 +53,9 @@ The NextApp is based on the [DockerCluster](https://github.com/codedazur/toolkit
31
53
 
32
54
  ```ts
33
55
  new NextApp(this, "NextApp", {
34
- ...
56
+ // ...
35
57
  cpu: 1024,
36
58
  memory: 4096,
37
59
  tasks: { min: 1, max: 10 },
38
60
  });
39
61
  ```
40
-
41
- ## Docker
42
-
43
- In order to use this construct, your Next.js application needs to be configure for Docker deployments. See the [official documentation](https://nextjs.org/docs/pages/building-your-application/deploying#docker-image) for more information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-next-app",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "main": ".dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "test": "vitest run --passWithNoTests"
24
24
  },
25
25
  "dependencies": {
26
- "@codedazur/cdk-docker-cluster": "*"
26
+ "@codedazur/cdk-docker-cluster": "^0.4.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "aws-cdk-lib": ">=2",