From 4bb926908d9a7ee134701c3e5a1b5e6ea688f843 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 23 May 2024 11:38:07 -0400 Subject: [PATCH] Prevent errors from adapters when i18n domains is not used (#11129) --- .changeset/shy-pets-lie.md | 5 +++++ packages/astro/src/integrations/features-validation.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shy-pets-lie.md diff --git a/.changeset/shy-pets-lie.md b/.changeset/shy-pets-lie.md new file mode 100644 index 0000000000..8175fef46a --- /dev/null +++ b/.changeset/shy-pets-lie.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Prevent errors from adapters when i18n domains is not used diff --git a/packages/astro/src/integrations/features-validation.ts b/packages/astro/src/integrations/features-validation.ts index eee019deb7..9b5ddba338 100644 --- a/packages/astro/src/integrations/features-validation.ts +++ b/packages/astro/src/integrations/features-validation.ts @@ -70,7 +70,7 @@ export function validateSupportedFeatures( ); validationResult.assets = validateAssetsFeature(assets, adapterName, config, logger); - if (!config.i18n?.domains) { + if (config.i18n?.domains) { validationResult.i18nDomains = validateSupportKind( i18nDomains, adapterName,