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,