@fy-stack/app-construct 0.0.147-alpha.3061 → 0.0.147-alpha.30610
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/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/dist/lib/ecs/apps/image-app-construct.js +1 -1
- package/dist/lib/ecs/apps/next-app-router-construct.d.ts.map +1 -1
- package/dist/lib/ecs/apps/next-app-router-construct.js +13 -16
- package/dist/lib/ecs/apps/task-construct.js +1 -1
- package/dist/lib/ecs/shared/taskDefinitionImage.d.ts.map +1 -1
- package/dist/lib/ecs/shared/taskDefinitionImage.js +2 -3
- package/dist/lib/ecs/types.d.ts +1 -0
- package/dist/lib/ecs/types.d.ts.map +1 -1
- package/dist/lib/lambda/apps/image-app-construct.d.ts +9 -43
- package/dist/lib/lambda/apps/image-app-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/image-app-construct.js +15 -17
- package/dist/lib/lambda/apps/next-app-router-construct.d.ts +6 -9
- package/dist/lib/lambda/apps/next-app-router-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/next-app-router-construct.js +33 -13
- package/dist/lib/lambda/apps/node-api-construct.d.ts +2 -13
- package/dist/lib/lambda/apps/node-api-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/node-api-construct.js +3 -5
- package/dist/lib/lambda/apps/node-app-construct.d.ts +2 -13
- package/dist/lib/lambda/apps/node-app-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/node-app-construct.js +1 -5
- package/dist/lib/lambda/types.d.ts +3 -1
- package/dist/lib/lambda/types.d.ts.map +1 -1
- package/dist/lib/lambda/utils/lambda-attach.js +1 -1
- package/dist/lib/shared/code-deployment.d.ts +4 -0
- package/dist/lib/shared/code-deployment.d.ts.map +1 -0
- package/dist/lib/shared/code-deployment.js +21 -0
- package/dist/lib/shared/code-from-param.d.ts +6 -0
- package/dist/lib/shared/code-from-param.d.ts.map +1 -0
- package/dist/lib/shared/code-from-param.js +11 -0
- package/dist/lib/shared/container-from-param.d.ts +7 -0
- package/dist/lib/shared/container-from-param.d.ts.map +1 -0
- package/dist/lib/shared/container-from-param.js +12 -0
- package/dist/lib/shared/container.d.ts +6 -0
- package/dist/lib/shared/container.d.ts.map +1 -0
- package/dist/lib/shared/container.js +11 -0
- package/dist/lib/shared/next-app-router.d.ts +12 -3
- package/dist/lib/shared/next-app-router.d.ts.map +1 -1
- package/dist/lib/shared/next-app-router.js +41 -46
- package/dist/lib/shared/params-from-attachable.d.ts +5 -0
- package/dist/lib/shared/params-from-attachable.d.ts.map +1 -0
- package/dist/lib/shared/params-from-attachable.js +11 -0
- package/dist/lib/shared/public-bucket.d.ts +4 -0
- package/dist/lib/shared/public-bucket.d.ts.map +1 -0
- package/dist/lib/shared/public-bucket.js +23 -0
- package/dist/lib/standalone/image-app-container.d.ts +6 -2
- package/dist/lib/standalone/image-app-container.d.ts.map +1 -1
- package/dist/lib/standalone/image-app-container.js +17 -7
- package/dist/lib/standalone/next-app-router-code.d.ts +9 -0
- package/dist/lib/standalone/next-app-router-code.d.ts.map +1 -0
- package/dist/lib/standalone/next-app-router-code.js +53 -0
- package/dist/lib/standalone/next-app-router-container.d.ts +5 -2
- package/dist/lib/standalone/next-app-router-container.d.ts.map +1 -1
- package/dist/lib/standalone/next-app-router-container.js +29 -16
- package/dist/lib/standalone/types.d.ts +1 -3
- package/dist/lib/standalone/types.d.ts.map +1 -1
- package/dist/lib/static/apps/next-pages-export-construct.d.ts +2 -5
- package/dist/lib/static/apps/next-pages-export-construct.d.ts.map +1 -1
- package/dist/lib/static/apps/next-pages-export-construct.js +1 -3
- package/dist/lib/static/apps/static-website-construct.d.ts +3 -7
- package/dist/lib/static/apps/static-website-construct.d.ts.map +1 -1
- package/dist/lib/static/apps/static-website-construct.js +2 -1
- package/dist/lib/static/types.d.ts +1 -1
- package/dist/lib/static/types.d.ts.map +1 -1
- package/dist/lib/util/constants.d.ts +3 -23
- package/dist/lib/util/constants.d.ts.map +1 -1
- package/dist/lib/util/public-bucket.d.ts +4 -0
- package/dist/lib/util/public-bucket.d.ts.map +1 -0
- package/dist/lib/util/public-bucket.js +23 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lambdaAttach = lambdaAttach;
|
|
4
|
-
const params_from_attachable_1 = require("../../
|
|
4
|
+
const params_from_attachable_1 = require("../../shared/params-from-attachable");
|
|
5
5
|
function lambdaAttach(func, attachable) {
|
|
6
6
|
const params = {};
|
|
7
7
|
Object.assign(params, ...(0, params_from_attachable_1.paramsFromAttachable)(attachable));
|
|
@@ -0,0 +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;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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.codeDeployment = codeDeployment;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
|
+
const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
|
|
7
|
+
function codeDeployment(scope, bucket, output, version) {
|
|
8
|
+
const codeFiles = s3Deploy.Source.asset(output);
|
|
9
|
+
const codePrefix = `${version}/assets/code`;
|
|
10
|
+
const codeDeployment = new s3Deploy.BucketDeployment(scope, `CodeDeployment`, {
|
|
11
|
+
destinationBucket: bucket,
|
|
12
|
+
sources: [codeFiles],
|
|
13
|
+
destinationKeyPrefix: codePrefix,
|
|
14
|
+
retainOnDelete: true,
|
|
15
|
+
extract: false,
|
|
16
|
+
});
|
|
17
|
+
return cdk.Fn.join('/', [
|
|
18
|
+
codePrefix,
|
|
19
|
+
cdk.Fn.select(0, codeDeployment.objectKeys),
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
@@ -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,CACzB,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,SAAW;;;EAcnB"}
|
|
@@ -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, version = 'latest') {
|
|
7
|
+
return {
|
|
8
|
+
code: ssm.StringParameter.fromStringParameterName(scope, `CodeFilesKeyParamV${version}`, `/${reference}/${version}/code`).stringValue,
|
|
9
|
+
cmd: ssm.StringParameter.fromStringParameterName(scope, `CodeCMDParamV${version}`, `/${reference}/${version}/code/handler`).stringValue,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -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,CACpC,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,SAAW;;;;EAmBnB"}
|
|
@@ -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, version = 'latest') {
|
|
7
|
+
return {
|
|
8
|
+
repository: ssm.StringParameter.fromStringParameterName(scope, `RepositoryNameV${version}`, `/${reference}/${version}/repository`).stringValue,
|
|
9
|
+
tag: ssm.StringParameter.fromStringParameterName(scope, `VersionNumberV${version}`, `/${reference}/${version}/tag`).stringValue,
|
|
10
|
+
cmd: ssm.StringParameter.fromStringParameterName(scope, `ImageCMDV${version}`, `/${reference}/${version}/cmd`).stringValue,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM;;;EAazE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
};
|
|
11
|
+
}
|
|
@@ -4,6 +4,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
|
4
4
|
import * as s3Deploy from 'aws-cdk-lib/aws-s3-deployment';
|
|
5
5
|
import { Construct } from 'constructs';
|
|
6
6
|
export type AppFile = {
|
|
7
|
+
artifactBucket: s3.IBucket;
|
|
7
8
|
staticFiles?: {
|
|
8
9
|
deployment?: s3Deploy.BucketDeployment;
|
|
9
10
|
key: string;
|
|
@@ -13,8 +14,16 @@ export type AppFile = {
|
|
|
13
14
|
key: string;
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
|
-
export declare function
|
|
17
|
-
|
|
17
|
+
export declare function filesFromSSM(scope: Construct, reference: string, version?: string): {
|
|
18
|
+
artifact: string;
|
|
19
|
+
publicFiles: {
|
|
20
|
+
key: string;
|
|
21
|
+
};
|
|
22
|
+
staticFiles: {
|
|
23
|
+
key: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare function staticDeployment(app: Construct, bucket: s3.IBucket, output: string, version?: string): {
|
|
18
27
|
files: {
|
|
19
28
|
staticFiles: {
|
|
20
29
|
deployment: cdk.aws_s3_deployment.BucketDeployment;
|
|
@@ -26,7 +35,7 @@ export declare function staticDeployment(app: Construct, output: string): {
|
|
|
26
35
|
};
|
|
27
36
|
};
|
|
28
37
|
};
|
|
29
|
-
export declare function cloudfrontBehaviours(
|
|
38
|
+
export declare function cloudfrontBehaviours(scope: Construct, staticBucket: s3.IBucket, serverOrigin: cloudfront.IOrigin, basePath: string, files: AppFile, isLambda?: boolean): {
|
|
30
39
|
[x: string]: cdk.aws_cloudfront.BehaviorOptions;
|
|
31
40
|
};
|
|
32
41
|
//# sourceMappingURL=next-app-router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/next-app-router.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE,CAAC;AAEF,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"next-app-router.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/next-app-router.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,cAAc,EAAE,EAAE,CAAC,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE,CAAC;AAEF,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,SAAW;;;;;;;;EAuBnB;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,EAAE,CAAC,OAAO,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM;;;;;;;;;;;EAsDjB;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,EAAE,CAAC,OAAO,EACxB,YAAY,EAAE,UAAU,CAAC,OAAO,EAChC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,QAAQ,UAAQ;;EAkGjB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filesFromSSM = filesFromSSM;
|
|
3
4
|
exports.staticDeployment = staticDeployment;
|
|
4
5
|
exports.cloudfrontBehaviours = cloudfrontBehaviours;
|
|
5
6
|
const tslib_1 = require("tslib");
|
|
@@ -7,39 +8,35 @@ const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
|
7
8
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
8
9
|
const cloudfront = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfront"));
|
|
9
10
|
const cloudfrontOrigin = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfront-origins"));
|
|
10
|
-
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
allowedMethods: [s3.HttpMethods.GET, s3.HttpMethods.HEAD],
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
});
|
|
13
|
+
function filesFromSSM(scope, reference, version = 'latest') {
|
|
14
|
+
return {
|
|
15
|
+
artifact: ssm.StringParameter.fromStringParameterName(scope, `ArtifactStorageParamV${version}`, `/${reference}/${version}/artifacts`).stringValue,
|
|
16
|
+
publicFiles: {
|
|
17
|
+
key: ssm.StringParameter.fromStringParameterName(scope, `PublicFilesParamV${version}`, `/${reference}/${version}/files/publicFiles/key`).stringValue,
|
|
18
|
+
},
|
|
19
|
+
staticFiles: {
|
|
20
|
+
key: ssm.StringParameter.fromStringParameterName(scope, `StaticFilesParamV${version}`, `/${reference}/${version}/files/staticFiles/key`).stringValue,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function staticDeployment(app, bucket, output, version) {
|
|
29
25
|
const staticFiles = s3Deploy.Source.asset(node_path_1.default.join(output, '/.next/static'));
|
|
30
26
|
const publicFiles = s3Deploy.Source.asset(node_path_1.default.join(output, '/public'));
|
|
27
|
+
const staticPrefix = version ? `${version}/assets/static` : 'assets/static';
|
|
28
|
+
const publicPrefix = version ? `${version}/assets/public` : 'assets/public';
|
|
31
29
|
const staticDeployment = new s3Deploy.BucketDeployment(app, `StaticAssetDeployment`, {
|
|
32
|
-
destinationBucket:
|
|
30
|
+
destinationBucket: bucket,
|
|
33
31
|
sources: [staticFiles],
|
|
34
|
-
destinationKeyPrefix:
|
|
32
|
+
destinationKeyPrefix: staticPrefix,
|
|
35
33
|
retainOnDelete: false,
|
|
36
34
|
extract: false,
|
|
37
35
|
});
|
|
38
36
|
const publicDeployment = new s3Deploy.BucketDeployment(app, `PublicAssetDeployment`, {
|
|
39
|
-
destinationBucket:
|
|
37
|
+
destinationBucket: bucket,
|
|
40
38
|
sources: [publicFiles],
|
|
41
|
-
destinationKeyPrefix:
|
|
42
|
-
prune: false,
|
|
39
|
+
destinationKeyPrefix: publicPrefix,
|
|
43
40
|
retainOnDelete: false,
|
|
44
41
|
extract: false,
|
|
45
42
|
});
|
|
@@ -47,14 +44,14 @@ function staticDeployment(app, output) {
|
|
|
47
44
|
staticFiles: {
|
|
48
45
|
deployment: staticDeployment,
|
|
49
46
|
key: cdk.Fn.join('/', [
|
|
50
|
-
|
|
47
|
+
staticPrefix,
|
|
51
48
|
cdk.Fn.select(0, staticDeployment.objectKeys),
|
|
52
49
|
]),
|
|
53
50
|
},
|
|
54
51
|
publicFiles: {
|
|
55
52
|
deployment: publicDeployment,
|
|
56
53
|
key: cdk.Fn.join('/', [
|
|
57
|
-
|
|
54
|
+
publicPrefix,
|
|
58
55
|
cdk.Fn.select(0, publicDeployment.objectKeys),
|
|
59
56
|
]),
|
|
60
57
|
},
|
|
@@ -62,29 +59,13 @@ function staticDeployment(app, output) {
|
|
|
62
59
|
if (!files.publicFiles || !files.staticFiles) {
|
|
63
60
|
throw new Error('Failed to deploy static and public files');
|
|
64
61
|
}
|
|
65
|
-
return {
|
|
62
|
+
return { files };
|
|
66
63
|
}
|
|
67
|
-
function cloudfrontBehaviours(
|
|
64
|
+
function cloudfrontBehaviours(scope, staticBucket, serverOrigin, basePath, files, isLambda = false) {
|
|
68
65
|
const strippedBasePath = basePath.replace(/^\/+|\/+$/g, '');
|
|
69
|
-
if (files.staticFiles) {
|
|
70
|
-
const staticFiles = s3Deploy.Source.bucket(staticBucket, files.staticFiles.key);
|
|
71
|
-
const deployment = new s3Deploy.BucketDeployment(app, `${strippedBasePath}StaticDeployment`, {
|
|
72
|
-
prune: false,
|
|
73
|
-
destinationBucket: staticBucket,
|
|
74
|
-
sources: [staticFiles],
|
|
75
|
-
destinationKeyPrefix: strippedBasePath
|
|
76
|
-
? `${strippedBasePath}/_next/static/`
|
|
77
|
-
: '_next/static/',
|
|
78
|
-
retainOnDelete: false,
|
|
79
|
-
});
|
|
80
|
-
if (files.staticFiles.deployment) {
|
|
81
|
-
deployment.node.addDependency(files.staticFiles.deployment);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
66
|
if (files.publicFiles) {
|
|
85
|
-
const publicFiles = s3Deploy.Source.bucket(
|
|
86
|
-
const deployment = new s3Deploy.BucketDeployment(
|
|
87
|
-
prune: false,
|
|
67
|
+
const publicFiles = s3Deploy.Source.bucket(files.artifactBucket, files.publicFiles.key);
|
|
68
|
+
const deployment = new s3Deploy.BucketDeployment(scope, `${strippedBasePath}PublicDeployment`, {
|
|
88
69
|
destinationBucket: staticBucket,
|
|
89
70
|
sources: [publicFiles],
|
|
90
71
|
destinationKeyPrefix: strippedBasePath
|
|
@@ -96,6 +77,20 @@ function cloudfrontBehaviours(app, staticBucket, serverOrigin, basePath, files,
|
|
|
96
77
|
deployment.node.addDependency(files.publicFiles.deployment);
|
|
97
78
|
}
|
|
98
79
|
}
|
|
80
|
+
if (files.staticFiles) {
|
|
81
|
+
const staticFiles = s3Deploy.Source.bucket(files.artifactBucket, files.staticFiles.key);
|
|
82
|
+
const deployment = new s3Deploy.BucketDeployment(scope, `${strippedBasePath}StaticDeployment`, {
|
|
83
|
+
destinationBucket: staticBucket,
|
|
84
|
+
sources: [staticFiles],
|
|
85
|
+
destinationKeyPrefix: strippedBasePath
|
|
86
|
+
? `${strippedBasePath}/_next/static/`
|
|
87
|
+
: '_next/static/',
|
|
88
|
+
retainOnDelete: false,
|
|
89
|
+
});
|
|
90
|
+
if (files.staticFiles.deployment) {
|
|
91
|
+
deployment.node.addDependency(files.staticFiles.deployment);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
99
94
|
const staticOrigin = new cloudfrontOrigin.S3StaticWebsiteOrigin(staticBucket);
|
|
100
95
|
const staticBehavior = {
|
|
101
96
|
origin: staticOrigin,
|
|
@@ -105,8 +100,8 @@ function cloudfrontBehaviours(app, staticBucket, serverOrigin, basePath, files,
|
|
|
105
100
|
compress: true,
|
|
106
101
|
viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
|
|
107
102
|
};
|
|
108
|
-
const imageCachePolicyID = ssm.StringParameter.fromStringParameterName(
|
|
109
|
-
const imageCachePolicy = cloudfront.CachePolicy.fromCachePolicyId(
|
|
103
|
+
const imageCachePolicyID = ssm.StringParameter.fromStringParameterName(scope, 'NextAppRouterImagePolicyArn', '/fy-stack/ImagePolicyID');
|
|
104
|
+
const imageCachePolicy = cloudfront.CachePolicy.fromCachePolicyId(scope, 'ImagePolicy', imageCachePolicyID.stringValue);
|
|
110
105
|
const appBehaviour = {
|
|
111
106
|
origin: serverOrigin,
|
|
112
107
|
cachePolicy: cloudfront.CachePolicy.CACHING_DISABLED,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"params-from-attachable.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/params-from-attachable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;IAS1E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paramsFromAttachable = paramsFromAttachable;
|
|
4
|
+
function paramsFromAttachable(attachable) {
|
|
5
|
+
return Object.entries(attachable).map(([key, val]) => {
|
|
6
|
+
return Object.fromEntries(Object.entries(val?.attachable() ?? {}).map(([subKey, subVal]) => [
|
|
7
|
+
`${key}_${subKey}`.toUpperCase(),
|
|
8
|
+
subVal,
|
|
9
|
+
]));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.publicBucket = publicBucket;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
|
+
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
7
|
+
function publicBucket(scope, id) {
|
|
8
|
+
return new s3.Bucket(scope, id, {
|
|
9
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
10
|
+
autoDeleteObjects: true,
|
|
11
|
+
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ACLS_ONLY,
|
|
12
|
+
publicReadAccess: true,
|
|
13
|
+
websiteIndexDocument: 'index.html',
|
|
14
|
+
websiteErrorDocument: 'index.html',
|
|
15
|
+
cors: [
|
|
16
|
+
{
|
|
17
|
+
allowedHeaders: ['*'],
|
|
18
|
+
allowedOrigins: ['*'],
|
|
19
|
+
allowedMethods: [s3.HttpMethods.GET, s3.HttpMethods.HEAD],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
|
|
1
2
|
import { Construct } from 'constructs';
|
|
2
|
-
import type {
|
|
3
|
-
export type ImageAppProps =
|
|
3
|
+
import type { StandaloneApp } from './types';
|
|
4
|
+
export type ImageAppProps = StandaloneApp & {
|
|
5
|
+
container?: DockerImageAssetOptions;
|
|
6
|
+
cmd: string[];
|
|
7
|
+
};
|
|
4
8
|
export declare class ImageAppContainer extends Construct {
|
|
5
9
|
constructor(scope: Construct, id: string, props: ImageAppProps);
|
|
6
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"
|
|
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;CA+C/D"}
|
|
@@ -25,13 +25,23 @@ class ImageAppContainer extends constructs_1.Construct {
|
|
|
25
25
|
src: new ecrDeployment.DockerImageName(container.imageUri),
|
|
26
26
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
const versions = [props.version, 'latest'];
|
|
29
|
+
const parameters = [];
|
|
30
|
+
for (const v of versions) {
|
|
31
|
+
parameters.push(new ssm.StringParameter(this, `RepositoryParamV${v}`, {
|
|
32
|
+
parameterName: `/${stackName}/${v}/repository`,
|
|
33
|
+
stringValue: repo.repositoryName,
|
|
34
|
+
}), new ssm.StringParameter(this, `TagParamV${v}`, {
|
|
35
|
+
parameterName: `/${stackName}/${v}/tag`,
|
|
36
|
+
stringValue: props.version,
|
|
37
|
+
}), new ssm.StringParameter(this, `ImageCMDV${v}`, {
|
|
38
|
+
parameterName: `/${stackName}/${v}/cmd`,
|
|
39
|
+
stringValue: props.cmd.map((i) => i.trim()).join(','),
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
for (const p of parameters) {
|
|
43
|
+
p.applyRemovalPolicy(cdk.RemovalPolicy.RETAIN);
|
|
44
|
+
}
|
|
35
45
|
}
|
|
36
46
|
}
|
|
37
47
|
exports.ImageAppContainer = ImageAppContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import type { StandaloneApp } from './types';
|
|
3
|
+
export type NextAppRouterProps = StandaloneApp & {
|
|
4
|
+
cmd: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class NextAppRouterCode extends Construct {
|
|
7
|
+
constructor(scope: Construct, id: string, props: NextAppRouterProps);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=next-app-router-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;CA0DpE"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NextAppRouterCode = void 0;
|
|
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"));
|
|
7
|
+
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
8
|
+
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
9
|
+
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
10
|
+
const constructs_1 = require("constructs");
|
|
11
|
+
const code_deployment_1 = require("../shared/code-deployment");
|
|
12
|
+
const next_app_router_1 = require("../shared/next-app-router");
|
|
13
|
+
class NextAppRouterCode extends constructs_1.Construct {
|
|
14
|
+
constructor(scope, id, props) {
|
|
15
|
+
super(scope, id);
|
|
16
|
+
const stackName = cdk.Stack.of(this).stackName;
|
|
17
|
+
const artifactBucket = new s3.Bucket(this, 'ArtifactStorage', {
|
|
18
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
19
|
+
autoDeleteObjects: true,
|
|
20
|
+
});
|
|
21
|
+
const deployment = (0, next_app_router_1.staticDeployment)(this, artifactBucket, props.output, props.version);
|
|
22
|
+
const serverOutput = node_path_1.default.join(props.output, '/.next/standalone');
|
|
23
|
+
node_fs_1.default.writeFileSync(node_path_1.default.join(serverOutput, 'run.sh'), props.cmd);
|
|
24
|
+
const code = (0, code_deployment_1.codeDeployment)(this, artifactBucket, serverOutput, props.version);
|
|
25
|
+
const versions = [props.version, 'latest'];
|
|
26
|
+
const parameters = [];
|
|
27
|
+
for (const v of versions) {
|
|
28
|
+
parameters.push(new ssm.StringParameter(this, `ArtifactsParamV${v}`, {
|
|
29
|
+
parameterName: `/${stackName}/${v}/artifacts`,
|
|
30
|
+
stringValue: artifactBucket.bucketName,
|
|
31
|
+
}), new ssm.StringParameter(this, `CodeFilesKeyParamV${v}`, {
|
|
32
|
+
parameterName: `/${stackName}/${v}/code`,
|
|
33
|
+
stringValue: code,
|
|
34
|
+
}), new ssm.StringParameter(this, `CodeCMDParamV${v}`, {
|
|
35
|
+
parameterName: `/${stackName}/${v}/code/handler`,
|
|
36
|
+
stringValue: 'run.sh',
|
|
37
|
+
}), new ssm.StringParameter(this, `StaticFilesKeyParamV${v}`, {
|
|
38
|
+
parameterName: `/${stackName}/${v}/files/staticFiles/key`,
|
|
39
|
+
stringValue: deployment.files.staticFiles.key,
|
|
40
|
+
}), new ssm.StringParameter(this, `PublicFilesKeyParamV${v}`, {
|
|
41
|
+
parameterName: `/${stackName}/${v}/files/publicFiles/key`,
|
|
42
|
+
stringValue: deployment.files.publicFiles.key,
|
|
43
|
+
}), new ssm.StringParameter(this, `TagParamV${v}`, {
|
|
44
|
+
parameterName: `/${stackName}/${v}/tag`,
|
|
45
|
+
stringValue: props.version,
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
for (const p of parameters) {
|
|
49
|
+
p.applyRemovalPolicy(cdk.RemovalPolicy.RETAIN);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.NextAppRouterCode = NextAppRouterCode;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
|
|
1
2
|
import { Construct } from 'constructs';
|
|
2
|
-
import type {
|
|
3
|
-
export type NextAppRouterProps =
|
|
3
|
+
import type { StandaloneApp } from './types';
|
|
4
|
+
export type NextAppRouterProps = StandaloneApp & {
|
|
5
|
+
container?: DockerImageAssetOptions;
|
|
6
|
+
};
|
|
4
7
|
export declare class NextAppRouterContainer extends Construct {
|
|
5
8
|
constructor(scope: Construct, id: string, props: NextAppRouterProps);
|
|
6
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"
|
|
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;CA8DpE"}
|
|
@@ -5,6 +5,7 @@ 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
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"));
|
|
8
9
|
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
9
10
|
const ecrDeployment = tslib_1.__importStar(require("cdk-ecr-deployment"));
|
|
10
11
|
const constructs_1 = require("constructs");
|
|
@@ -17,31 +18,43 @@ class NextAppRouterContainer extends constructs_1.Construct {
|
|
|
17
18
|
emptyOnDelete: true,
|
|
18
19
|
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
19
20
|
});
|
|
21
|
+
const artifactBucket = new s3.Bucket(this, 'ArtifactStorage', {
|
|
22
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
23
|
+
autoDeleteObjects: true,
|
|
24
|
+
});
|
|
20
25
|
const container = new ecrAssets.DockerImageAsset(this, 'ContainerAsset', {
|
|
21
26
|
directory: props.output,
|
|
22
27
|
platform: ecrAssets.Platform.LINUX_AMD64,
|
|
23
28
|
...props.container,
|
|
24
29
|
});
|
|
25
|
-
const deployment = (0, next_app_router_1.staticDeployment)(this, props.output);
|
|
30
|
+
const deployment = (0, next_app_router_1.staticDeployment)(this, artifactBucket, props.output, props.version);
|
|
26
31
|
new ecrDeployment.ECRDeployment(this, 'DeployedContainer', {
|
|
27
32
|
src: new ecrDeployment.DockerImageName(container.imageUri),
|
|
28
33
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
29
34
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
const versions = [props.version, 'latest'];
|
|
36
|
+
const parameters = [];
|
|
37
|
+
for (const v of versions) {
|
|
38
|
+
parameters.push(new ssm.StringParameter(this, `RepositoryParamV${v}`, {
|
|
39
|
+
parameterName: `/${stackName}/${v}/repository`,
|
|
40
|
+
stringValue: repo.repositoryName,
|
|
41
|
+
}), new ssm.StringParameter(this, `ArtifactsParamV${v}`, {
|
|
42
|
+
parameterName: `/${stackName}/${v}/artifacts`,
|
|
43
|
+
stringValue: artifactBucket.bucketName,
|
|
44
|
+
}), new ssm.StringParameter(this, `StaticFilesKeyParamV${v}`, {
|
|
45
|
+
parameterName: `/${stackName}/${v}/files/staticFiles/key`,
|
|
46
|
+
stringValue: deployment.files.staticFiles.key,
|
|
47
|
+
}), new ssm.StringParameter(this, `PublicFilesKeyParamV${v}`, {
|
|
48
|
+
parameterName: `/${stackName}/${v}/files/publicFiles/key`,
|
|
49
|
+
stringValue: deployment.files.publicFiles.key,
|
|
50
|
+
}), new ssm.StringParameter(this, `TagParamV${v}`, {
|
|
51
|
+
parameterName: `/${stackName}/${v}/tag`,
|
|
52
|
+
stringValue: props.version,
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
for (const p of parameters) {
|
|
56
|
+
p.applyRemovalPolicy(cdk.RemovalPolicy.RETAIN);
|
|
57
|
+
}
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
exports.NextAppRouterContainer = NextAppRouterContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -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
|
|
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:
|
|
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;
|
|
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"}
|