Skip to content
This is an unmaintained snapshot of the Astro v6 docs. View the latest docs.

Invalid internationalization middleware configuration.

InvalidI18nMiddlewareConfiguration: The option redirectToDefaultLocale can be enabled only when prefixDefaultLocale is also set to true; otherwise, redirects might cause infinite loops. Enable the option prefixDefaultLocale to continue to use redirectToDefaultLocale, or ensure both are set to false.

An invalid i18n middleware configuration was detected.

Contribute Community Sponsor