@pattform/api-kit 2.6.7 → 2.6.8
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/AppComponent.d.ts +1 -0
- package/dist/AppComponent.js +5 -2
- package/package.json +1 -1
package/dist/AppComponent.d.ts
CHANGED
package/dist/AppComponent.js
CHANGED
|
@@ -7,7 +7,7 @@ const cloudflare = require("@pulumi/cloudflare");
|
|
|
7
7
|
const pattformHelper_1 = require("./pattformHelper");
|
|
8
8
|
class AppComponent extends pulumi.ComponentResource {
|
|
9
9
|
constructor(name, args, opts) {
|
|
10
|
-
var _a, _b, _c, _d;
|
|
10
|
+
var _a, _b, _c, _d, _e, _f;
|
|
11
11
|
super("custom:pattform:AppComponent", name, args, opts);
|
|
12
12
|
const awsConfig = new pulumi.Config("aws");
|
|
13
13
|
const awsRegion = awsConfig.require("region");
|
|
@@ -104,6 +104,9 @@ class AppComponent extends pulumi.ComponentResource {
|
|
|
104
104
|
phases:
|
|
105
105
|
preBuild:
|
|
106
106
|
commands:
|
|
107
|
+
- nvm install ${(_d = args.nodeVersion) !== null && _d !== void 0 ? _d : "22"}
|
|
108
|
+
- nvm use ${(_e = args.nodeVersion) !== null && _e !== void 0 ? _e : "22"}
|
|
109
|
+
- node -v
|
|
107
110
|
- npm install
|
|
108
111
|
build:
|
|
109
112
|
commands:
|
|
@@ -154,7 +157,7 @@ class AppComponent extends pulumi.ComponentResource {
|
|
|
154
157
|
// stack already manages the apex (e.g. the apex/www site while this
|
|
155
158
|
// is a subdomain app), set manageValidationRecord: false to reuse it
|
|
156
159
|
// instead of colliding on an identical record.
|
|
157
|
-
if ((
|
|
160
|
+
if ((_f = args.manageValidationRecord) !== null && _f !== void 0 ? _f : true) {
|
|
158
161
|
this.validationRecord = new cloudflare.Record(`${appName}-cloudflareValidateRecord-${env}`, {
|
|
159
162
|
zoneId: cloudflareZone.id,
|
|
160
163
|
name: this.domainAssociation.certificateVerificationDnsRecord.apply(record => record.split(' ')[0]),
|