effortless-aws 0.13.0 → 0.14.1

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/cli/index.js CHANGED
@@ -72314,7 +72314,13 @@ var findDistributionByTags = (project2, stage, handlerName) => Effect_exports.ge
72314
72314
  });
72315
72315
  if (!dist?.ResourceARN) return void 0;
72316
72316
  const distributionId = dist.ResourceARN.split("/").pop();
72317
- const result = yield* cloudfront_exports.make("get_distribution", { Id: distributionId });
72317
+ const result = yield* cloudfront_exports.make("get_distribution", { Id: distributionId }).pipe(
72318
+ Effect_exports.catchIf(
72319
+ (e) => e._tag === "CloudFrontError" && e.is("NoSuchDistribution"),
72320
+ () => Effect_exports.succeed(void 0)
72321
+ )
72322
+ );
72323
+ if (!result) return void 0;
72318
72324
  return {
72319
72325
  Id: distributionId,
72320
72326
  DomainName: result.Distribution.DomainName
@@ -73356,7 +73362,7 @@ var deployStaticSite = (input) => Effect_exports.gen(function* () {
73356
73362
  });
73357
73363
  const oacName = `${project2}-${stage}-oac`;
73358
73364
  const { oacId } = yield* ensureOAC({ name: oacName });
73359
- const domain = config2.domain;
73365
+ const domain = typeof config2.domain === "string" ? config2.domain : config2.domain?.[stage];
73360
73366
  let aliases;
73361
73367
  let acmCertificateArn;
73362
73368
  let wwwDomain;