@codedazur/cdk-next-app 0.2.12 → 0.3.0

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,16 @@
1
1
  # @codedazur/cdk-next-app
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ddef1e0`](https://github.com/codedazur/toolkit/commit/ddef1e023538d35ecf637a30e654f10ebb06d8d2) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - Authentication is now disabled by default for the API route, even if authentication is prvided for the default behavior.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @codedazur/cdk-docker-cluster@0.9.2
13
+
3
14
  ## 0.2.12
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -46,12 +46,23 @@ var NextApp = class _NextApp extends import_cdk_docker_cluster.DockerCluster {
46
46
  service: { port = 3e3, ...service } = {},
47
47
  ...props
48
48
  }) {
49
+ var _a, _b, _c;
49
50
  super(scope, id, {
50
51
  source: _NextApp.withNpmSecret(source),
51
52
  service: {
52
53
  port,
53
54
  ...service
54
55
  },
56
+ distribution: {
57
+ ...props.distribution,
58
+ behaviors: {
59
+ ...(_a = props.distribution) == null ? void 0 : _a.behaviors,
60
+ "/api/*": {
61
+ authentication: false,
62
+ ...(_c = (_b = props.distribution) == null ? void 0 : _b.behaviors) == null ? void 0 : _c["/api/*"]
63
+ }
64
+ }
65
+ },
55
66
  ...props
56
67
  });
57
68
  }
package/dist/index.mjs CHANGED
@@ -12,12 +12,23 @@ var NextApp = class _NextApp extends DockerCluster {
12
12
  service: { port = 3e3, ...service } = {},
13
13
  ...props
14
14
  }) {
15
+ var _a, _b, _c;
15
16
  super(scope, id, {
16
17
  source: _NextApp.withNpmSecret(source),
17
18
  service: {
18
19
  port,
19
20
  ...service
20
21
  },
22
+ distribution: {
23
+ ...props.distribution,
24
+ behaviors: {
25
+ ...(_a = props.distribution) == null ? void 0 : _a.behaviors,
26
+ "/api/*": {
27
+ authentication: false,
28
+ ...(_c = (_b = props.distribution) == null ? void 0 : _b.behaviors) == null ? void 0 : _c["/api/*"]
29
+ }
30
+ }
31
+ },
21
32
  ...props
22
33
  });
23
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-next-app",
3
- "version": "0.2.12",
3
+ "version": "0.3.0",
4
4
  "main": ".dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "scripts": {
18
18
  "develop": "tsup src/index.ts --format esm,cjs --dts --watch",
19
19
  "build": "tsup src/index.ts --format esm,cjs --dts",
20
- "audit": "npm audit --omit dev",
20
+ "audit": "npm audit --omit dev --audit-level high",
21
21
  "lint": "TIMING=1 eslint \"**/*.ts*\"",
22
22
  "types": "tsc --noEmit",
23
23
  "test": "vitest run --passWithNoTests"
@@ -27,7 +27,7 @@
27
27
  "constructs": ">=10"
28
28
  },
29
29
  "dependencies": {
30
- "@codedazur/cdk-docker-cluster": "^0.9.1"
30
+ "@codedazur/cdk-docker-cluster": "^0.9.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.14.10",