Skip to content

Commit 37d2c8c

Browse files
committed
fix: baseUrl add PENDING_SITES
1 parent 8bfd0f2 commit 37d2c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/docs/src/lib/metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SITES } from '@next-i18n/const';
1+
import { PENDING_SITES, SITES } from '@next-i18n/const';
22
import type { Metadata } from 'next/types';
33

44
export function createMetadata(
@@ -51,5 +51,5 @@ export const baseUrl =
5151
? new URL('http://localhost:3000')
5252
: new URL(
5353
// biome-ignore lint/style/noNonNullAssertion: <explanation>
54-
SITES[process.env.LOCALE!],
54+
SITES[process.env.LOCALE!] || PENDING_SITES[process.env.LOCALE!],
5555
);

0 commit comments

Comments
 (0)