mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Prevent errors from adapters when i18n domains is not used (#11129)
This commit is contained in:
parent
50775925f9
commit
4bb926908d
2 changed files with 6 additions and 1 deletions
5
.changeset/shy-pets-lie.md
Normal file
5
.changeset/shy-pets-lie.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Prevent errors from adapters when i18n domains is not used
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue