mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
227cd83a51
commit
5759fd9947
2 changed files with 6 additions and 6 deletions
|
@ -761,9 +761,9 @@ export function createRouteManifest(
|
||||||
if (defaultLocaleRoutes) {
|
if (defaultLocaleRoutes) {
|
||||||
// The index for the default locale will be either already at the root path
|
// The index for the default locale will be either already at the root path
|
||||||
// or at the root of the locale.
|
// or at the root of the locale.
|
||||||
const indexDefaultRoute = defaultLocaleRoutes
|
const indexDefaultRoute =
|
||||||
.find(({route}) => route === '/')
|
defaultLocaleRoutes.find(({ route }) => route === '/') ??
|
||||||
?? defaultLocaleRoutes.find(({route}) => route === `/${i18n.defaultLocale}`);
|
defaultLocaleRoutes.find(({ route }) => route === `/${i18n.defaultLocale}`);
|
||||||
|
|
||||||
if (indexDefaultRoute) {
|
if (indexDefaultRoute) {
|
||||||
// we found the index of the default locale, now we create a root index that will redirect to the index of the default locale
|
// we found the index of the default locale, now we create a root index that will redirect to the index of the default locale
|
||||||
|
|
Loading…
Reference in a new issue