@stacksjs/cloud 0.58.63 → 0.58.65
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.js +8 -8
- package/package.json +1 -1
- package/src/cloud/ai.ts +3 -3
- package/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/src/cloud/cli.ts +1 -1
- package/src/cloud/compute.ts +1 -1
- package/src/cloud/deployment.ts +3 -3
- package/src/cloud/router-layer/nodejs/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -407,7 +407,7 @@ class AiStack {
|
|
|
407
407
|
summarizeAiUrl;
|
|
408
408
|
constructor(scope, props) {
|
|
409
409
|
const awsSdkLayer = new lambda.LayerVersion(scope, "AwsSdkLayer", {
|
|
410
|
-
code: lambda.Code.fromAsset("src/cloud/aws-sdk-layer"),
|
|
410
|
+
code: lambda.Code.fromAsset("../core/cloud/src/cloud/aws-sdk-layer"),
|
|
411
411
|
compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],
|
|
412
412
|
description: "Layer with aws-sdk"
|
|
413
413
|
});
|
|
@@ -431,7 +431,7 @@ class AiStack {
|
|
|
431
431
|
description: "Lambda function to invoke the AI model",
|
|
432
432
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
433
433
|
handler: "index.handler",
|
|
434
|
-
code: lambda.Code.fromAsset("src/cloud/lambda/ask"),
|
|
434
|
+
code: lambda.Code.fromAsset("../core/cloud/src/cloud/lambda/ask"),
|
|
435
435
|
layers: [awsSdkLayer],
|
|
436
436
|
role: bedrockAccessRole,
|
|
437
437
|
timeout: Duration.seconds(30)
|
|
@@ -448,7 +448,7 @@ class AiStack {
|
|
|
448
448
|
description: "Lambda function to summarize any given text",
|
|
449
449
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
450
450
|
handler: "index.handler",
|
|
451
|
-
code: lambda.Code.fromAsset("src/cloud/lambda/summarize"),
|
|
451
|
+
code: lambda.Code.fromAsset("../core/cloud/src/cloud/lambda/summarize"),
|
|
452
452
|
layers: [awsSdkLayer],
|
|
453
453
|
role: bedrockAccessRole,
|
|
454
454
|
timeout: Duration.seconds(30)
|
|
@@ -823,7 +823,7 @@ class CliStack {
|
|
|
823
823
|
description: "Lambda function that triggers setup script for a Stacks project",
|
|
824
824
|
runtime: lambda2.Runtime.NODEJS_20_X,
|
|
825
825
|
handler: "index.handler",
|
|
826
|
-
code: lambda2.Code.fromAsset("src/cloud/lambda/cli-setup"),
|
|
826
|
+
code: lambda2.Code.fromAsset("../core/cloud/src/cloud/lambda/cli-setup"),
|
|
827
827
|
timeout: Duration3.seconds(30)
|
|
828
828
|
});
|
|
829
829
|
this.cliSetupUrl = new lambda2.FunctionUrl(scope, "CliSetupFunctionUrl", {
|
|
@@ -1173,9 +1173,9 @@ class DeploymentStack {
|
|
|
1173
1173
|
docsSource;
|
|
1174
1174
|
websiteSource;
|
|
1175
1175
|
constructor(scope, props) {
|
|
1176
|
-
this.privateSource = "
|
|
1177
|
-
this.docsSource = "
|
|
1178
|
-
this.websiteSource = config12.app.docMode === true ? this.docsSource : "
|
|
1176
|
+
this.privateSource = "../../private";
|
|
1177
|
+
this.docsSource = "../docs/dist/";
|
|
1178
|
+
this.websiteSource = config12.app.docMode === true ? this.docsSource : "../views/dist/";
|
|
1179
1179
|
new s3deploy.BucketDeployment(scope, "Website", {
|
|
1180
1180
|
sources: [s3deploy.Source.asset(this.websiteSource, {
|
|
1181
1181
|
assetHash: websiteSourceHash,
|
|
@@ -1713,7 +1713,7 @@ class ComputeStack {
|
|
|
1713
1713
|
port: 3000,
|
|
1714
1714
|
healthCheck: {
|
|
1715
1715
|
interval: Duration6.seconds(6),
|
|
1716
|
-
path: "/api/
|
|
1716
|
+
path: "/api/healthy",
|
|
1717
1717
|
protocol: elbv2.Protocol.HTTP,
|
|
1718
1718
|
timeout: Duration6.seconds(5),
|
|
1719
1719
|
healthyThresholdCount: 2,
|
package/package.json
CHANGED
package/src/cloud/ai.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class AiStack {
|
|
|
14
14
|
constructor(scope: Construct, props: AiStackProps) {
|
|
15
15
|
// Define the Lambda Layer for aws-sdk
|
|
16
16
|
const awsSdkLayer = new lambda.LayerVersion(scope, 'AwsSdkLayer', {
|
|
17
|
-
code: lambda.Code.fromAsset('src/cloud/aws-sdk-layer'),
|
|
17
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/aws-sdk-layer'), // path is relative to frameworkCloudPath()
|
|
18
18
|
compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],
|
|
19
19
|
description: 'Layer with aws-sdk',
|
|
20
20
|
})
|
|
@@ -42,7 +42,7 @@ export class AiStack {
|
|
|
42
42
|
description: 'Lambda function to invoke the AI model',
|
|
43
43
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
44
44
|
handler: 'index.handler',
|
|
45
|
-
code: lambda.Code.fromAsset('src/cloud/lambda/ask'), // path relative to
|
|
45
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/ask'), // path is relative to frameworkCloudPath()
|
|
46
46
|
layers: [awsSdkLayer],
|
|
47
47
|
role: bedrockAccessRole,
|
|
48
48
|
timeout: Duration.seconds(30),
|
|
@@ -61,7 +61,7 @@ export class AiStack {
|
|
|
61
61
|
description: 'Lambda function to summarize any given text',
|
|
62
62
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
63
63
|
handler: 'index.handler',
|
|
64
|
-
code: lambda.Code.fromAsset('src/cloud/lambda/summarize'),
|
|
64
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/summarize'), // path is relative to frameworkCloudPath()
|
|
65
65
|
layers: [awsSdkLayer],
|
|
66
66
|
role: bedrockAccessRole,
|
|
67
67
|
timeout: Duration.seconds(30),
|
package/src/cloud/cli.ts
CHANGED
|
@@ -15,7 +15,7 @@ export class CliStack {
|
|
|
15
15
|
description: 'Lambda function that triggers setup script for a Stacks project',
|
|
16
16
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
17
17
|
handler: 'index.handler',
|
|
18
|
-
code: lambda.Code.fromAsset('src/cloud/lambda/cli-setup'), // path relative to the cloud root package dir
|
|
18
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/cli-setup'), // path relative to the cloud root package dir
|
|
19
19
|
timeout: Duration.seconds(30),
|
|
20
20
|
})
|
|
21
21
|
|
package/src/cloud/compute.ts
CHANGED
package/src/cloud/deployment.ts
CHANGED
|
@@ -19,9 +19,9 @@ export class DeploymentStack {
|
|
|
19
19
|
|
|
20
20
|
constructor(scope: Construct, props: DeploymentStackProps) {
|
|
21
21
|
// following paths are relative to where the command is run from
|
|
22
|
-
this.privateSource = '
|
|
23
|
-
this.docsSource = '
|
|
24
|
-
this.websiteSource = config.app.docMode === true ? this.docsSource : '
|
|
22
|
+
this.privateSource = '../../private'
|
|
23
|
+
this.docsSource = '../docs/dist/'
|
|
24
|
+
this.websiteSource = config.app.docMode === true ? this.docsSource : '../views/dist/'
|
|
25
25
|
|
|
26
26
|
new s3deploy.BucketDeployment(scope, 'Website', {
|
|
27
27
|
sources: [s3deploy.Source.asset(this.websiteSource, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks-router-layer",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.65",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@stacksjs/router": "^0.58.
|
|
13
|
+
"@stacksjs/router": "^0.58.64"
|
|
14
14
|
}
|
|
15
15
|
}
|