diff --git a/.changeset/mean-pugs-nail.md b/.changeset/mean-pugs-nail.md new file mode 100644 index 0000000000..24037ef91b --- /dev/null +++ b/.changeset/mean-pugs-nail.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fixes a case where a warning was logged even when the feature `i18nDomains` wasn't enabled diff --git a/packages/astro/src/integrations/astroFeaturesValidation.ts b/packages/astro/src/integrations/astroFeaturesValidation.ts index ce0f1b9c41..dc4ac3e874 100644 --- a/packages/astro/src/integrations/astroFeaturesValidation.ts +++ b/packages/astro/src/integrations/astroFeaturesValidation.ts @@ -70,7 +70,7 @@ export function validateSupportedFeatures( ); validationResult.assets = validateAssetsFeature(assets, adapterName, config, logger); - if (i18nDomains) { + if (i18nDomains && config?.experimental?.i18nDomains === true && !config.i18n?.domains) { validationResult.i18nDomains = validateSupportKind( i18nDomains, adapterName,