sst 2.0.30 → 2.0.31
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/bootstrap.js +3 -1
- package/package.json +1 -1
- package/sst.mjs +1 -1
package/bootstrap.js
CHANGED
|
@@ -105,7 +105,9 @@ export async function bootstrapSST(tags) {
|
|
|
105
105
|
const fn = new Function(stack, "MetadataHandler", {
|
|
106
106
|
code: Code.fromAsset(path.resolve(__dirname, "support/bootstrap-metadata-function")),
|
|
107
107
|
handler: "index.handler",
|
|
108
|
-
runtime:
|
|
108
|
+
runtime: app.region?.startsWith("us-gov-")
|
|
109
|
+
? Runtime.NODEJS_16_X
|
|
110
|
+
: Runtime.NODEJS_18_X,
|
|
109
111
|
environment: {
|
|
110
112
|
BUCKET_NAME: bucket.bucketName,
|
|
111
113
|
},
|
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -2710,7 +2710,7 @@ async function bootstrapSST(tags) {
|
|
|
2710
2710
|
path8.resolve(__dirname, "support/bootstrap-metadata-function")
|
|
2711
2711
|
),
|
|
2712
2712
|
handler: "index.handler",
|
|
2713
|
-
runtime: Runtime.NODEJS_18_X,
|
|
2713
|
+
runtime: app.region?.startsWith("us-gov-") ? Runtime.NODEJS_16_X : Runtime.NODEJS_18_X,
|
|
2714
2714
|
environment: {
|
|
2715
2715
|
BUCKET_NAME: bucket.bucketName
|
|
2716
2716
|
},
|