@fy-stack/app-construct 0.0.147-alpha.3065 → 0.0.147-alpha.3068

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.
Files changed (52) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/lib/ecs/apps/next-app-router-construct.d.ts.map +1 -1
  5. package/dist/lib/ecs/apps/next-app-router-construct.js +3 -3
  6. package/dist/lib/ecs/shared/taskDefinitionImage.js +2 -2
  7. package/dist/lib/lambda/apps/image-app-construct.d.ts +9 -43
  8. package/dist/lib/lambda/apps/image-app-construct.d.ts.map +1 -1
  9. package/dist/lib/lambda/apps/image-app-construct.js +4 -7
  10. package/dist/lib/lambda/apps/next-app-router-construct.d.ts +5 -8
  11. package/dist/lib/lambda/apps/next-app-router-construct.d.ts.map +1 -1
  12. package/dist/lib/lambda/apps/next-app-router-construct.js +22 -10
  13. package/dist/lib/lambda/apps/node-api-construct.d.ts +2 -13
  14. package/dist/lib/lambda/apps/node-api-construct.d.ts.map +1 -1
  15. package/dist/lib/lambda/apps/node-api-construct.js +4 -6
  16. package/dist/lib/lambda/apps/node-app-construct.d.ts +2 -13
  17. package/dist/lib/lambda/apps/node-app-construct.d.ts.map +1 -1
  18. package/dist/lib/lambda/apps/node-app-construct.js +1 -5
  19. package/dist/lib/lambda/types.d.ts +1 -0
  20. package/dist/lib/lambda/types.d.ts.map +1 -1
  21. package/dist/lib/shared/code-deployment.d.ts.map +1 -1
  22. package/dist/lib/shared/code-deployment.js +1 -1
  23. package/dist/lib/shared/code-from-param.d.ts +6 -0
  24. package/dist/lib/shared/code-from-param.d.ts.map +1 -0
  25. package/dist/lib/shared/code-from-param.js +11 -0
  26. package/dist/lib/shared/container-from-param.d.ts +7 -0
  27. package/dist/lib/shared/container-from-param.d.ts.map +1 -0
  28. package/dist/lib/shared/container-from-param.js +12 -0
  29. package/dist/lib/shared/next-app-router.d.ts +1 -1
  30. package/dist/lib/shared/next-app-router.js +2 -2
  31. package/dist/lib/shared/public-bucket.d.ts +2 -2
  32. package/dist/lib/shared/public-bucket.d.ts.map +1 -1
  33. package/dist/lib/shared/public-bucket.js +1 -1
  34. package/dist/lib/standalone/image-app-container.d.ts +2 -1
  35. package/dist/lib/standalone/image-app-container.d.ts.map +1 -1
  36. package/dist/lib/standalone/image-app-container.js +4 -0
  37. package/dist/lib/standalone/next-app-router-code.d.ts.map +1 -1
  38. package/dist/lib/standalone/next-app-router-code.js +4 -4
  39. package/dist/lib/standalone/next-app-router-container.d.ts +1 -1
  40. package/dist/lib/standalone/next-app-router-container.d.ts.map +1 -1
  41. package/dist/lib/standalone/next-app-router-container.js +1 -1
  42. package/dist/lib/static/apps/next-pages-export-construct.d.ts +2 -5
  43. package/dist/lib/static/apps/next-pages-export-construct.d.ts.map +1 -1
  44. package/dist/lib/static/apps/next-pages-export-construct.js +1 -3
  45. package/dist/lib/static/apps/static-website-construct.d.ts +3 -7
  46. package/dist/lib/static/apps/static-website-construct.d.ts.map +1 -1
  47. package/dist/lib/static/apps/static-website-construct.js +2 -1
  48. package/dist/lib/static/types.d.ts +1 -1
  49. package/dist/lib/static/types.d.ts.map +1 -1
  50. package/dist/lib/util/constants.d.ts +3 -23
  51. package/dist/lib/util/constants.d.ts.map +1 -1
  52. package/package.json +5 -3
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export type { LambdaConstructProps } from './lib/lambda/types';
5
5
  export { lambdaAttach } from './lib/lambda/utils/lambda-attach';
6
6
  export { lambdaGrant } from './lib/lambda/utils/lambda-grant';
7
7
  export { ImageAppContainer } from './lib/standalone/image-app-container';
8
- export { NextAppRouterContainer } from './lib/standalone/next-app-router-container';
9
8
  export { NextAppRouterCode } from './lib/standalone/next-app-router-code';
9
+ export { NextAppRouterContainer } from './lib/standalone/next-app-router-container';
10
10
  export { StaticConstruct } from './lib/static/static-construct';
11
11
  export type { StaticConstructProps } from './lib/static/types';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StaticConstruct = exports.NextAppRouterCode = exports.NextAppRouterContainer = exports.ImageAppContainer = exports.lambdaGrant = exports.lambdaAttach = exports.LambdaConstruct = exports.EcsConstruct = void 0;
3
+ exports.StaticConstruct = exports.NextAppRouterContainer = exports.NextAppRouterCode = exports.ImageAppContainer = exports.lambdaGrant = exports.lambdaAttach = exports.LambdaConstruct = exports.EcsConstruct = void 0;
4
4
  var ecs_construct_1 = require("./lib/ecs/ecs-construct");
5
5
  Object.defineProperty(exports, "EcsConstruct", { enumerable: true, get: function () { return ecs_construct_1.EcsConstruct; } });
6
6
  var lambda_construct_1 = require("./lib/lambda/lambda-construct");
@@ -11,9 +11,9 @@ var lambda_grant_1 = require("./lib/lambda/utils/lambda-grant");
11
11
  Object.defineProperty(exports, "lambdaGrant", { enumerable: true, get: function () { return lambda_grant_1.lambdaGrant; } });
12
12
  var image_app_container_1 = require("./lib/standalone/image-app-container");
13
13
  Object.defineProperty(exports, "ImageAppContainer", { enumerable: true, get: function () { return image_app_container_1.ImageAppContainer; } });
14
- var next_app_router_container_1 = require("./lib/standalone/next-app-router-container");
15
- Object.defineProperty(exports, "NextAppRouterContainer", { enumerable: true, get: function () { return next_app_router_container_1.NextAppRouterContainer; } });
16
14
  var next_app_router_code_1 = require("./lib/standalone/next-app-router-code");
17
15
  Object.defineProperty(exports, "NextAppRouterCode", { enumerable: true, get: function () { return next_app_router_code_1.NextAppRouterCode; } });
16
+ var next_app_router_container_1 = require("./lib/standalone/next-app-router-container");
17
+ Object.defineProperty(exports, "NextAppRouterContainer", { enumerable: true, get: function () { return next_app_router_container_1.NextAppRouterContainer; } });
18
18
  var static_construct_1 = require("./lib/static/static-construct");
19
19
  Object.defineProperty(exports, "StaticConstruct", { enumerable: true, get: function () { return static_construct_1.StaticConstruct; } });
@@ -1 +1 @@
1
- {"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAUvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGvD,KAAK,kBAAkB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAEjD,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAOjC,OAAO,CAAC,KAAK;IANhD,SAAS,EAAE,GAAG,CAAC,mBAAmB,CAAC;IACnC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAU,KAAK,EAAE,kBAAkB;IA8B3E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAcpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAO7C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;CAG7B"}
1
+ {"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAWvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,KAAK,kBAAkB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAEjD,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAOjC,OAAO,CAAC,KAAK;IANhD,SAAS,EAAE,GAAG,CAAC,mBAAmB,CAAC;IACnC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAU,KAAK,EAAE,kBAAkB;IA8B3E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAcpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAO7C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;CAG7B"}
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NextAppRouterConstruct = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
6
5
  const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
6
+ const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
7
7
  const constructs_1 = require("constructs");
8
8
  const next_app_router_1 = require("../../shared/next-app-router");
9
9
  const params_from_attachable_1 = require("../../shared/params-from-attachable");
10
- const taskDefinitionImage_1 = require("../shared/taskDefinitionImage");
11
10
  const public_bucket_1 = require("../../shared/public-bucket");
11
+ const taskDefinitionImage_1 = require("../shared/taskDefinitionImage");
12
12
  class NextAppRouterConstruct extends constructs_1.Construct {
13
13
  props;
14
14
  container;
@@ -28,7 +28,7 @@ class NextAppRouterConstruct extends constructs_1.Construct {
28
28
  this.files = { artifactBucket: artifactBucket, ...deployment.files };
29
29
  }
30
30
  else {
31
- const fileParams = (0, next_app_router_1.filesFromSSm)(this, props.reference);
31
+ const fileParams = (0, next_app_router_1.filesFromSSM)(this, props.reference);
32
32
  const appArtifact = s3.Bucket.fromBucketName(scope, 'AppArtifactStorage', fileParams.artifact);
33
33
  this.files = { ...fileParams, artifactBucket: appArtifact };
34
34
  }
@@ -6,7 +6,7 @@ const node_path_1 = tslib_1.__importDefault(require("node:path"));
6
6
  const ecr = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr"));
7
7
  const ecrAssets = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr-assets"));
8
8
  const ecs = tslib_1.__importStar(require("aws-cdk-lib/aws-ecs"));
9
- const container_1 = require("../../shared/container");
9
+ const container_from_param_1 = require("../../shared/container-from-param");
10
10
  function taskDefinitionImage(scope, id, props) {
11
11
  let image;
12
12
  let containerProps;
@@ -23,7 +23,7 @@ function taskDefinitionImage(scope, id, props) {
23
23
  containerProps = _containerProps;
24
24
  }
25
25
  else {
26
- const params = (0, container_1.containerParamsFromSSM)(scope, props.reference);
26
+ const params = (0, container_from_param_1.containerParamsFromSSM)(scope, props.reference);
27
27
  const repository = ecr.Repository.fromRepositoryName(scope, `${id}Repository`, params.repository);
28
28
  image = ecs.ContainerImage.fromEcrRepository(repository, params.tag);
29
29
  containerProps = props.container;
@@ -10,37 +10,8 @@ import { AppConstruct, AppProperties } from '../types';
10
10
  declare const BuildParamsSchema: z.ZodObject<{
11
11
  container: z.ZodOptional<z.ZodObject<{
12
12
  file: z.ZodOptional<z.ZodString>;
13
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15
- file: z.ZodOptional<z.ZodString>;
16
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
18
- file: z.ZodOptional<z.ZodString>;
19
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
- }, z.ZodTypeAny, "passthrough">>>;
21
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
22
- container: z.ZodOptional<z.ZodObject<{
23
- file: z.ZodOptional<z.ZodString>;
24
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
26
- file: z.ZodOptional<z.ZodString>;
27
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29
- file: z.ZodOptional<z.ZodString>;
30
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
- }, z.ZodTypeAny, "passthrough">>>;
32
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
33
- container: z.ZodOptional<z.ZodObject<{
34
- file: z.ZodOptional<z.ZodString>;
35
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
37
- file: z.ZodOptional<z.ZodString>;
38
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
40
- file: z.ZodOptional<z.ZodString>;
41
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
- }, z.ZodTypeAny, "passthrough">>>;
43
- }, z.ZodTypeAny, "passthrough">>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$loose>;
44
15
  export declare class ImageAppConstruct extends Construct implements AppConstruct {
45
16
  function: Function;
46
17
  queue: Queue | undefined;
@@ -51,18 +22,13 @@ export declare class ImageAppConstruct extends Construct implements AppConstruct
51
22
  cloudfront(path: string): Record<string, BehaviorOptions>;
52
23
  cloudfrontPolicy(distributionId: string): void;
53
24
  api(path: string): Record<string, HttpRouteIntegration>;
54
- static parse(params: unknown): z.objectOutputType<{
55
- container: z.ZodOptional<z.ZodObject<{
56
- file: z.ZodOptional<z.ZodString>;
57
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
59
- file: z.ZodOptional<z.ZodString>;
60
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
62
- file: z.ZodOptional<z.ZodString>;
63
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
64
- }, z.ZodTypeAny, "passthrough">>>;
65
- }, z.ZodTypeAny, "passthrough">;
25
+ static parse(params: unknown): {
26
+ [x: string]: unknown;
27
+ container?: {
28
+ [x: string]: unknown;
29
+ file?: string | undefined;
30
+ } | undefined;
31
+ };
66
32
  }
67
33
  export {};
68
34
  //# sourceMappingURL=image-app-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/image-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC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,oBAAoB,CAAC;IAIvD,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;;;;CAG7B"}
@@ -13,7 +13,7 @@ const aws_sns_subscriptions_1 = require("aws-cdk-lib/aws-sns-subscriptions");
13
13
  const aws_sqs_1 = require("aws-cdk-lib/aws-sqs");
14
14
  const constructs_1 = require("constructs");
15
15
  const zod_1 = require("zod");
16
- const container_1 = require("../../shared/container");
16
+ const container_from_param_1 = require("../../shared/container-from-param");
17
17
  const getDefaultLambda_1 = require("../utils/getDefaultLambda");
18
18
  const lambda_api_1 = require("../utils/lambda-api");
19
19
  const lambda_attach_1 = require("../utils/lambda-attach");
@@ -21,10 +21,7 @@ const lambda_grant_1 = require("../utils/lambda-grant");
21
21
  const BuildParamsSchema = zod_1.z
22
22
  .object({
23
23
  container: zod_1.z
24
- .object({
25
- file: zod_1.z.string().optional(),
26
- cmd: zod_1.z.string().array().optional(),
27
- })
24
+ .object({ file: zod_1.z.string().optional() })
28
25
  .passthrough()
29
26
  .optional(),
30
27
  })
@@ -37,11 +34,11 @@ class ImageAppConstruct extends constructs_1.Construct {
37
34
  const { container, ...functionProps } = props.buildParams;
38
35
  let code;
39
36
  if ('reference' in props) {
40
- const params = (0, container_1.containerParamsFromSSM)(this, props.reference);
37
+ const params = (0, container_from_param_1.containerParamsFromSSM)(this, props.reference);
41
38
  const repository = ecr.Repository.fromRepositoryName(this, 'Repository', params.repository);
42
39
  code = aws_lambda_1.Code.fromEcrImage(repository, {
43
40
  tagOrDigest: params.tag,
44
- cmd: container?.cmd,
41
+ cmd: params.cmd,
45
42
  });
46
43
  }
47
44
  else {
@@ -9,11 +9,7 @@ import { z } from 'zod';
9
9
  import { AppConstruct, AppProperties } from '../types';
10
10
  declare const BuildParamsSchema: z.ZodObject<{
11
11
  cmd: z.ZodString;
12
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
13
- cmd: z.ZodString;
14
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15
- cmd: z.ZodString;
16
- }, z.ZodTypeAny, "passthrough">>;
12
+ }, z.core.$loose>;
17
13
  export declare class NextAppRouterConstruct extends Construct implements AppConstruct {
18
14
  function: lambda.Function;
19
15
  queue: sqs.Queue | undefined;
@@ -26,9 +22,10 @@ export declare class NextAppRouterConstruct extends Construct implements AppCons
26
22
  attach(attachable: Record<string, Attachable>): void;
27
23
  grant(...grants: Grantable[]): void;
28
24
  subscription(): ITopicSubscription;
29
- static parse(params: unknown): z.objectOutputType<{
30
- cmd: z.ZodString;
31
- }, z.ZodTypeAny, "passthrough">;
25
+ static parse(params: unknown): {
26
+ [x: string]: unknown;
27
+ cmd: string;
28
+ };
32
29
  }
33
30
  export {};
34
31
  //# sourceMappingURL=next-app-router-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB;;;;;;gCAA8C,CAAC;AAEtE,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IACpE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,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,MAAM,iBAAiB;;iBAA8C,CAAC;AAEtE,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IACpE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;gBAG9B,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAkEzD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAkBpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAgG3D,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,IAAI,kBAAkB;IAIlC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;CAG7B"}
@@ -14,10 +14,11 @@ const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
14
14
  const constructs_1 = require("constructs");
15
15
  const zod_1 = require("zod");
16
16
  const next_app_router_1 = require("../../shared/next-app-router");
17
+ const public_bucket_1 = require("../../shared/public-bucket");
17
18
  const getDefaultLambda_1 = require("../utils/getDefaultLambda");
18
19
  const lambda_attach_1 = require("../utils/lambda-attach");
19
20
  const lambda_grant_1 = require("../utils/lambda-grant");
20
- const public_bucket_1 = require("../../shared/public-bucket");
21
+ const code_from_param_1 = require("../../shared/code-from-param");
21
22
  const BuildParamsSchema = zod_1.z.object({ cmd: zod_1.z.string() }).passthrough();
22
23
  class NextAppRouterConstruct extends constructs_1.Construct {
23
24
  function;
@@ -26,17 +27,12 @@ class NextAppRouterConstruct extends constructs_1.Construct {
26
27
  files;
27
28
  constructor(scope, id, props) {
28
29
  super(scope, id);
29
- if (!('output' in props)) {
30
- throw new Error('Output is required');
31
- }
32
30
  const region = cdk.Stack.of(this).region;
33
31
  this.static = (0, public_bucket_1.publicBucket)(this, 'StaticBucket');
34
32
  const artifactBucket = new s3.Bucket(this, 'ArtifactStorage', {
35
33
  removalPolicy: cdk.RemovalPolicy.DESTROY,
36
34
  autoDeleteObjects: true,
37
35
  });
38
- const deployment = (0, next_app_router_1.staticDeployment)(this, artifactBucket, props.output);
39
- this.files = { artifactBucket, ...deployment.files };
40
36
  const webAdapterLayer = lambda.LayerVersion.fromLayerVersionArn(this, 'WebAdapterLayer', `arn:aws:lambda:${region}:753240598075:layer:LambdaAdapterLayerX86:25`);
41
37
  const environment = {
42
38
  AWS_LAMBDA_EXEC_WRAPPER: '/opt/bootstrap',
@@ -45,15 +41,31 @@ class NextAppRouterConstruct extends constructs_1.Construct {
45
41
  AWS_LWA_INVOKE_MODE: 'response_stream',
46
42
  };
47
43
  const { cmd, ...functionProps } = props.buildParams;
48
- const serverOutput = path.join(props.output, '/.next/standalone');
49
- fs.writeFileSync(path.join(serverOutput, 'run.sh'), cmd);
50
44
  const defaultProps = (0, getDefaultLambda_1.getDefaultLambda)(props);
45
+ let handler;
46
+ let code;
47
+ if ('output' in props) {
48
+ const deployment = (0, next_app_router_1.staticDeployment)(this, artifactBucket, props.output);
49
+ this.files = { artifactBucket, ...deployment.files };
50
+ const serverOutput = path.join(props.output, '/.next/standalone');
51
+ fs.writeFileSync(path.join(serverOutput, 'run.sh'), cmd);
52
+ handler = 'run.sh';
53
+ code = lambda.Code.fromAsset(serverOutput);
54
+ }
55
+ else {
56
+ const fileParams = (0, next_app_router_1.filesFromSSM)(this, props.reference);
57
+ const appArtifact = s3.Bucket.fromBucketName(scope, 'AppArtifactStorage', fileParams.artifact);
58
+ this.files = { ...fileParams, artifactBucket: appArtifact };
59
+ const cmdParams = (0, code_from_param_1.codeFromSSM)(this, props.reference);
60
+ handler = cmdParams.cmd;
61
+ code = lambda.Code.fromBucketV2(appArtifact, cmdParams.code);
62
+ }
51
63
  this.function = new lambda.Function(this, `AppFunction`, {
52
64
  ...defaultProps,
53
65
  environment: Object.assign({}, defaultProps.environment, environment),
54
66
  runtime: lambda.Runtime.NODEJS_20_X,
55
- handler: 'run.sh',
56
- code: lambda.Code.fromAsset(serverOutput),
67
+ handler,
68
+ code,
57
69
  layers: [webAdapterLayer],
58
70
  ...functionProps,
59
71
  });
@@ -4,19 +4,11 @@ import * as lambda from 'aws-cdk-lib/aws-lambda';
4
4
  import { ITopicSubscription, SubscriptionProps } from 'aws-cdk-lib/aws-sns';
5
5
  import * as sqs from 'aws-cdk-lib/aws-sqs';
6
6
  import { Construct } from 'constructs';
7
- import { z } from 'zod';
8
7
  import { AppConstruct, AppProperties } from '../types';
9
- declare const BuildParamsSchema: z.ZodObject<{
10
- cmd: z.ZodString;
11
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12
- cmd: z.ZodString;
13
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
- cmd: z.ZodString;
15
- }, z.ZodTypeAny, "passthrough">>;
16
8
  export declare class NodeApiConstruct extends Construct implements AppConstruct {
17
9
  function: lambda.Function;
18
10
  queue: sqs.Queue | undefined;
19
- constructor(scope: Construct, id: string, props: AppProperties<z.infer<typeof BuildParamsSchema>>);
11
+ constructor(scope: Construct, id: string, props: AppProperties);
20
12
  attach(attachable: Record<string, Attachable>): void;
21
13
  grant(...grants: Grantable[]): void;
22
14
  subscription(props: SubscriptionProps): ITopicSubscription;
@@ -35,9 +27,6 @@ export declare class NodeApiConstruct extends Construct implements AppConstruct
35
27
  api(path: string): {
36
28
  [x: string]: cdk.aws_apigatewayv2_integrations.HttpUrlIntegration;
37
29
  };
38
- static parse(params: unknown): z.objectOutputType<{
39
- cmd: z.ZodString;
40
- }, z.ZodTypeAny, "passthrough">;
30
+ static parse<T>(params: T): T;
41
31
  }
42
- export {};
43
32
  //# sourceMappingURL=node-api-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-api-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-api-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB;;;;;;gCAA8C,CAAC;AAEtE,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,YAAY;IAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;gBAGlC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAmDzD,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAI1D,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;IAqBvB,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM;;;IAIhB,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;CAG7B"}
1
+ {"version":3,"file":"node-api-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-api-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,YAAY;IAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;gBAExB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IAkD9D,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAI1D,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;IAqBvB,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM;;;IAIhB,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;CAG1B"}
@@ -11,12 +11,10 @@ const lambda = tslib_1.__importStar(require("aws-cdk-lib/aws-lambda"));
11
11
  const lambdaEventSource = tslib_1.__importStar(require("aws-cdk-lib/aws-lambda-event-sources"));
12
12
  const sqs = tslib_1.__importStar(require("aws-cdk-lib/aws-sqs"));
13
13
  const constructs_1 = require("constructs");
14
- const zod_1 = require("zod");
15
14
  const getDefaultLambda_1 = require("../utils/getDefaultLambda");
16
15
  const lambda_api_1 = require("../utils/lambda-api");
17
16
  const lambda_attach_1 = require("../utils/lambda-attach");
18
17
  const lambda_grant_1 = require("../utils/lambda-grant");
19
- const BuildParamsSchema = zod_1.z.object({ cmd: zod_1.z.string() }).passthrough();
20
18
  class NodeApiConstruct extends constructs_1.Construct {
21
19
  function;
22
20
  queue;
@@ -34,14 +32,14 @@ class NodeApiConstruct extends constructs_1.Construct {
34
32
  const layers = [
35
33
  lambda.LayerVersion.fromLayerVersionArn(this, 'WebAdapterLayer', `arn:aws:lambda:${region}:753240598075:layer:LambdaAdapterLayerX86:16`),
36
34
  ];
37
- const { cmd, ...functionProps } = props.buildParams;
38
- node_fs_1.default.writeFileSync(node_path_1.default.join(props.output, 'run.sh'), cmd);
35
+ const functionProps = props.buildParams;
36
+ node_fs_1.default.writeFileSync(node_path_1.default.join(props.output, 'run.sh'), props.cmd);
39
37
  const defaultProps = (0, getDefaultLambda_1.getDefaultLambda)(props);
40
38
  this.function = new lambda.Function(this, `AppFunction`, {
41
39
  ...defaultProps,
42
40
  environment: Object.assign({}, defaultProps.environment, environment),
43
41
  runtime: lambda.Runtime.NODEJS_20_X,
44
- handler: 'run.sh',
42
+ handler: props.cmd,
45
43
  code: lambda.Code.fromAsset(props.output),
46
44
  layers,
47
45
  ...functionProps,
@@ -87,7 +85,7 @@ class NodeApiConstruct extends constructs_1.Construct {
87
85
  return (0, lambda_api_1.lambdaApi)(this.function, path);
88
86
  }
89
87
  static parse(params) {
90
- return BuildParamsSchema.parse(params);
88
+ return params;
91
89
  }
92
90
  }
93
91
  exports.NodeApiConstruct = NodeApiConstruct;
@@ -5,28 +5,17 @@ import * as lambda from 'aws-cdk-lib/aws-lambda';
5
5
  import { ITopicSubscription, SubscriptionProps } from 'aws-cdk-lib/aws-sns';
6
6
  import * as sqs from 'aws-cdk-lib/aws-sqs';
7
7
  import { Construct } from 'constructs';
8
- import { z } from 'zod';
9
8
  import { AppConstruct, AppProperties } from '../types';
10
- declare const BuildParamsSchema: z.ZodObject<{
11
- handler: z.ZodOptional<z.ZodString>;
12
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
13
- handler: z.ZodOptional<z.ZodString>;
14
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15
- handler: z.ZodOptional<z.ZodString>;
16
- }, z.ZodTypeAny, "passthrough">>;
17
9
  export declare class NodeAppConstruct extends Construct implements AppConstruct {
18
10
  function: lambda.Function;
19
11
  queue: sqs.Queue | undefined;
20
- constructor(scope: Construct, id: string, props: AppProperties<z.infer<typeof BuildParamsSchema>>);
12
+ constructor(scope: Construct, id: string, props: AppProperties);
21
13
  attach(attachable: Record<string, Attachable>): void;
22
14
  grant(...grants: Grantable[]): void;
23
15
  subscription(props: SubscriptionProps): ITopicSubscription;
24
16
  cloudfront(path: string): Record<string, BehaviorOptions>;
25
17
  cloudfrontPolicy(distributionId: string): void;
26
18
  api(path: string): Record<string, HttpRouteIntegration>;
27
- static parse(params: unknown): z.objectOutputType<{
28
- handler: z.ZodOptional<z.ZodString>;
29
- }, z.ZodTypeAny, "passthrough">;
19
+ static parse<T>(params: T): T;
30
20
  }
31
- export {};
32
21
  //# sourceMappingURL=node-app-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CA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AAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKvD,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,YAAY;IAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;gBAExB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IAgC9D,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAU1D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAIzD,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAcvD,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;CAG1B"}
@@ -9,13 +9,9 @@ const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources
9
9
  const snsSubscriptions = tslib_1.__importStar(require("aws-cdk-lib/aws-sns-subscriptions"));
10
10
  const aws_sqs_1 = require("aws-cdk-lib/aws-sqs");
11
11
  const constructs_1 = require("constructs");
12
- const zod_1 = require("zod");
13
12
  const getDefaultLambda_1 = require("../utils/getDefaultLambda");
14
13
  const lambda_attach_1 = require("../utils/lambda-attach");
15
14
  const lambda_grant_1 = require("../utils/lambda-grant");
16
- const BuildParamsSchema = zod_1.z
17
- .object({ handler: zod_1.z.string().optional() })
18
- .passthrough();
19
15
  class NodeAppConstruct extends constructs_1.Construct {
20
16
  function;
21
17
  queue;
@@ -71,7 +67,7 @@ class NodeAppConstruct extends constructs_1.Construct {
71
67
  };
72
68
  }
73
69
  static parse(params) {
74
- return BuildParamsSchema.parse(params);
70
+ return params;
75
71
  }
76
72
  }
77
73
  exports.NodeAppConstruct = NodeAppConstruct;
@@ -17,6 +17,7 @@ export type App = {
17
17
  } & Omit<AppProperties, 'vpc' | 'logGroup'>;
18
18
  export type AppResource = {
19
19
  output: string;
20
+ cmd: string;
20
21
  } | {
21
22
  reference: string;
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/lambda/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,OAAO,EACP,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,KAAK,EACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EA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AAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAClD,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;CAC3B,GAAG,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"code-deployment.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/code-deployment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,EAAE,CAAC,OAAO,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,UAqBhB"}
1
+ {"version":3,"file":"code-deployment.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/code-deployment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,EAAE,CAAC,OAAO,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,UAqBhB"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.codeDeployment = codeDeployment;
4
4
  const tslib_1 = require("tslib");
5
- const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
6
5
  const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
6
+ const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
7
7
  function codeDeployment(scope, bucket, output, version) {
8
8
  const codeFiles = s3Deploy.Source.asset(output);
9
9
  const codePrefix = `assets/code/${version}`;
@@ -0,0 +1,6 @@
1
+ import { Construct } from 'constructs';
2
+ export declare function codeFromSSM(scope: Construct, reference: string): {
3
+ code: string;
4
+ cmd: string;
5
+ };
6
+ //# sourceMappingURL=code-from-param.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-from-param.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/code-from-param.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM;;;EAa9D"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.codeFromSSM = codeFromSSM;
4
+ const tslib_1 = require("tslib");
5
+ const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
6
+ function codeFromSSM(scope, reference) {
7
+ return {
8
+ code: ssm.StringParameter.fromStringParameterName(scope, 'CodeFilesKeyParam', `/${reference}/code`).stringValue,
9
+ cmd: ssm.StringParameter.fromStringParameterName(scope, 'CodeCMDParam', `/${reference}/code/handler`).stringValue,
10
+ };
11
+ }
@@ -0,0 +1,7 @@
1
+ import { Construct } from 'constructs';
2
+ export declare function containerParamsFromSSM(scope: Construct, reference: string): {
3
+ repository: string;
4
+ tag: string;
5
+ cmd: string[];
6
+ };
7
+ //# sourceMappingURL=container-from-param.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-from-param.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/container-from-param.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM;;;;EAkBzE"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.containerParamsFromSSM = containerParamsFromSSM;
4
+ const tslib_1 = require("tslib");
5
+ const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
6
+ function containerParamsFromSSM(scope, reference) {
7
+ return {
8
+ repository: ssm.StringParameter.fromStringParameterName(scope, 'RepositoryName', `/${reference}/repository`).stringValue,
9
+ tag: ssm.StringParameter.fromStringParameterName(scope, 'VersionNumber', `/${reference}/tag`).stringValue,
10
+ cmd: ssm.StringListParameter.fromStringListParameterName(scope, 'ImageCMD', `/${reference}/cmd`).stringListValue,
11
+ };
12
+ }
@@ -14,7 +14,7 @@ export type AppFile = {
14
14
  key: string;
15
15
  };
16
16
  };
17
- export declare function filesFromSSm(scope: Construct, reference: string): {
17
+ export declare function filesFromSSM(scope: Construct, reference: string): {
18
18
  artifact: string;
19
19
  publicFiles: {
20
20
  key: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filesFromSSm = filesFromSSm;
3
+ exports.filesFromSSM = filesFromSSM;
4
4
  exports.staticDeployment = staticDeployment;
5
5
  exports.cloudfrontBehaviours = cloudfrontBehaviours;
6
6
  const tslib_1 = require("tslib");
@@ -10,7 +10,7 @@ const cloudfront = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfront"));
10
10
  const cloudfrontOrigin = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfront-origins"));
11
11
  const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
12
12
  const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
13
- function filesFromSSm(scope, reference) {
13
+ function filesFromSSM(scope, reference) {
14
14
  return {
15
15
  artifact: ssm.StringParameter.fromStringParameterName(scope, 'ArtifactStorage', `/${reference}/artifacts`).stringValue,
16
16
  publicFiles: {
@@ -1,4 +1,4 @@
1
- import * as s3 from 'aws-cdk-lib/aws-s3';
1
+ import * as cdk from 'aws-cdk-lib';
2
2
  import type { Construct } from 'constructs';
3
- export declare function publicBucket(scope: Construct, id: string): s3.Bucket;
3
+ export declare function publicBucket(scope: Construct, id: string): cdk.aws_s3.Bucket;
4
4
  //# sourceMappingURL=public-bucket.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-bucket.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/public-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,aAgBxD"}
1
+ {"version":3,"file":"public-bucket.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/public-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAEnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,qBAgBxD"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.publicBucket = publicBucket;
4
4
  const tslib_1 = require("tslib");
5
- const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
6
5
  const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
6
+ const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
7
7
  function publicBucket(scope, id) {
8
8
  return new s3.Bucket(scope, id, {
9
9
  removalPolicy: cdk.RemovalPolicy.DESTROY,
@@ -1,8 +1,9 @@
1
+ import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
1
2
  import { Construct } from 'constructs';
2
3
  import type { StandaloneApp } from './types';
3
- import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
4
4
  export type ImageAppProps = StandaloneApp & {
5
5
  container?: DockerImageAssetOptions;
6
+ cmd: string[];
6
7
  };
7
8
  export declare class ImageAppContainer extends Construct {
8
9
  constructor(scope: Construct, id: string, props: ImageAppProps);
@@ -1 +1 @@
1
- {"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;CAiC/D"}
1
+ {"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAI1E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;CAsC/D"}
@@ -29,6 +29,10 @@ class ImageAppContainer extends constructs_1.Construct {
29
29
  parameterName: `/${stackName}/repository`,
30
30
  stringValue: repo.repositoryName,
31
31
  });
32
+ new ssm.StringListParameter(this, 'ImageCMD', {
33
+ parameterName: `/${stackName}/cmd`,
34
+ stringListValue: props.cmd,
35
+ });
32
36
  new ssm.StringParameter(this, 'TagParam', {
33
37
  parameterName: `/${stackName}/tag`,
34
38
  stringValue: props.version,
@@ -1 +1 @@
1
- {"version":3,"file":"next-app-router-code.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-code.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CAoDpE"}
1
+ {"version":3,"file":"next-app-router-code.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-code.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CAoDpE"}
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NextAppRouterCode = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
6
+ const node_path_1 = tslib_1.__importDefault(require("node:path"));
5
7
  const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
6
8
  const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
7
9
  const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
8
10
  const constructs_1 = require("constructs");
9
- const next_app_router_1 = require("../shared/next-app-router");
10
11
  const code_deployment_1 = require("../shared/code-deployment");
11
- const node_path_1 = tslib_1.__importDefault(require("node:path"));
12
- const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
12
+ const next_app_router_1 = require("../shared/next-app-router");
13
13
  class NextAppRouterCode extends constructs_1.Construct {
14
14
  constructor(scope, id, props) {
15
15
  super(scope, id);
@@ -34,7 +34,7 @@ class NextAppRouterCode extends constructs_1.Construct {
34
34
  parameterName: `/${stackName}/code`,
35
35
  stringValue: code,
36
36
  });
37
- new ssm.StringParameter(this, 'CodeFilesKeyParam', {
37
+ new ssm.StringParameter(this, 'CodeCMDParam', {
38
38
  parameterName: `/${stackName}/code/handler`,
39
39
  stringValue: 'run.sh',
40
40
  });
@@ -1,6 +1,6 @@
1
+ import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
1
2
  import { Construct } from 'constructs';
2
3
  import type { StandaloneApp } from './types';
3
- import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
4
4
  export type NextAppRouterProps = StandaloneApp & {
5
5
  container?: DockerImageAssetOptions;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CAuDpE"}
1
+ {"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAK1E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CAuDpE"}
@@ -4,8 +4,8 @@ exports.NextAppRouterContainer = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
6
6
  const ecr = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr"));
7
- const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
8
7
  const ecrAssets = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr-assets"));
8
+ const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
9
9
  const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
10
10
  const ecrDeployment = tslib_1.__importStar(require("cdk-ecr-deployment"));
11
11
  const constructs_1 = require("constructs");
@@ -1,16 +1,13 @@
1
1
  import type { HttpRouteIntegration } from 'aws-cdk-lib/aws-apigatewayv2';
2
2
  import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
3
3
  import { Construct } from 'constructs';
4
- import { z } from 'zod';
5
4
  import { AppConstruct, AppProperties } from '../types';
6
- declare const BuildParamsSchema: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
7
5
  export declare class NextPagesExportConstruct extends Construct implements AppConstruct {
8
6
  private readonly static;
9
- constructor(scope: Construct, id: string, props: AppProperties<z.infer<typeof BuildParamsSchema>>);
7
+ constructor(scope: Construct, id: string, props: AppProperties);
10
8
  cloudfront(path: string): Record<string, cloudfront.BehaviorOptions>;
11
9
  cloudfrontPolicy(distributionId: string): void;
12
10
  api(): Record<string, HttpRouteIntegration>;
13
- static parse(params: unknown): {} | undefined;
11
+ static parse<T>(params: T): T;
14
12
  }
15
- export {};
16
13
  //# sourceMappingURL=next-pages-export-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next-pages-export-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/next-pages-export-construct.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,iBAAiB,+DAA0B,CAAC;AAElD,qBAAa,wBACX,SAAQ,SACR,YAAW,YAAY;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAGjC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAkCzD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAmBpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;CAG7B"}
1
+ {"version":3,"file":"next-pages-export-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/next-pages-export-construct.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,qBAAa,wBACX,SAAQ,SACR,YAAW,YAAY;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAEvB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IAiC9D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAmBpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;CAG1B"}
@@ -9,8 +9,6 @@ const cloudfrontOrigin = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfron
9
9
  const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
10
10
  const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
11
11
  const constructs_1 = require("constructs");
12
- const zod_1 = require("zod");
13
- const BuildParamsSchema = zod_1.z.object({}).optional();
14
12
  class NextPagesExportConstruct extends constructs_1.Construct {
15
13
  static;
16
14
  constructor(scope, id, props) {
@@ -63,7 +61,7 @@ class NextPagesExportConstruct extends constructs_1.Construct {
63
61
  throw new Error('api not supported for this construct');
64
62
  }
65
63
  static parse(params) {
66
- return BuildParamsSchema.parse(params);
64
+ return params;
67
65
  }
68
66
  }
69
67
  exports.NextPagesExportConstruct = NextPagesExportConstruct;
@@ -3,13 +3,9 @@ import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
3
3
  import { Construct } from 'constructs';
4
4
  import { z } from 'zod';
5
5
  import { AppConstruct, AppProperties } from '../types';
6
- declare const BuildParamsSchema: z.ZodOptional<z.ZodObject<{
6
+ declare const BuildParamsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
7
7
  spa: z.ZodOptional<z.ZodBoolean>;
8
- }, "strip", z.ZodTypeAny, {
9
- spa?: boolean | undefined;
10
- }, {
11
- spa?: boolean | undefined;
12
- }>>;
8
+ }, z.core.$strip>>>;
13
9
  export declare class StaticWebsiteConstruct extends Construct implements AppConstruct {
14
10
  private props;
15
11
  private readonly static;
@@ -19,7 +15,7 @@ export declare class StaticWebsiteConstruct extends Construct implements AppCons
19
15
  api(): Record<string, HttpRouteIntegration>;
20
16
  static parse(params: unknown): {
21
17
  spa?: boolean | undefined;
22
- } | undefined;
18
+ };
23
19
  }
24
20
  export {};
25
21
  //# sourceMappingURL=static-website-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"static-website-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/static-website-construct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,iBAAiB;;;;;;GAIV,CAAC;AAEd,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAMzE,OAAO,CAAC,KAAK;IALf,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAGjC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACF,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IA2BjE,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IA2DpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;CAG7B"}
1
+ {"version":3,"file":"static-website-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/static-website-construct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,iBAAiB;;mBAKT,CAAC;AAEf,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAMzE,OAAO,CAAC,KAAK;IALf,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAGjC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACF,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IA2BjE,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IA8DpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;CAG7B"}
@@ -13,7 +13,8 @@ const BuildParamsSchema = zod_1.z
13
13
  .object({
14
14
  spa: zod_1.z.boolean().optional(),
15
15
  })
16
- .optional();
16
+ .optional()
17
+ .default({});
17
18
  class StaticWebsiteConstruct extends constructs_1.Construct {
18
19
  props;
19
20
  static;
@@ -9,7 +9,7 @@ export type App = {
9
9
  output: string;
10
10
  buildParams?: Record<string, unknown>;
11
11
  };
12
- export type AppProperties<BuildParams = Record<string, unknown>> = {
12
+ export type AppProperties<BuildParams extends Record<string, unknown> = Partial<Record<string, unknown>>> = {
13
13
  buildParams: BuildParams;
14
14
  output: string;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/static/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,WAAW;CAAG;AAEjE,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,OAAO,OAAO,CAAC,gBAAgB,GAAG,OAAO,OAAO,CAAC,cAAc,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACjE,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/static/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,WAAW;CAC7D;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,OAAO,OAAO,CAAC,gBAAgB,GAAG,OAAO,OAAO,CAAC,cAAc,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,aAAa,CACvB,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAC5E;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,32 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ContainerAppFileSchema: z.ZodObject<{
3
3
  key: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- key: string;
6
- }, {
7
- key: string;
8
- }>;
4
+ }, z.core.$strip>;
9
5
  export declare const ContainerAppSchema: z.ZodObject<{
10
6
  repository: z.ZodString;
11
7
  tag: z.ZodOptional<z.ZodString>;
12
8
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
13
9
  key: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- key: string;
16
- }, {
17
- key: string;
18
- }>>>;
19
- }, "strip", z.ZodTypeAny, {
20
- repository: string;
21
- tag?: string | undefined;
22
- files?: Record<string, {
23
- key: string;
24
- }> | undefined;
25
- }, {
26
- repository: string;
27
- tag?: string | undefined;
28
- files?: Record<string, {
29
- key: string;
30
- }> | undefined;
31
- }>;
10
+ }, z.core.$strip>>>;
11
+ }, z.core.$strip>;
32
12
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/util/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;EAAgC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/util/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;iBAAgC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;iBAI7B,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@fy-stack/app-construct",
3
- "version": "0.0.147-alpha.3065",
3
+ "version": "0.0.147-alpha.3068",
4
4
  "repository": "https://github.com/festusyuma/fy-stack",
5
5
  "dependencies": {
6
- "@fy-stack/types": "0.0.147-alpha.3065",
6
+ "@fy-stack/types": "0.0.147-alpha.3068",
7
7
  "tslib": "^2.3.0",
8
8
  "zod": "^4.3.6"
9
9
  },
10
10
  "peerDependencies": {
11
- "constructs": "^10.4.4"
11
+ "aws-cdk-lib": "^2.243.0",
12
+ "constructs": "^10.5.1",
13
+ "cdk-ecr-deployment": "^4.1.2"
12
14
  },
13
15
  "main": "./dist/index.js",
14
16
  "module": "./dist/index.mjs",