We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 557f0c7 commit e256003Copy full SHA for e256003
1 file changed
app/routes/sitemap.$lang[.]xml.ts
@@ -5,12 +5,12 @@ import type { Route } from "./+types/sitemap.$lang[.]xml"
5
export const loader = async ({ request, params }: Route.LoaderArgs) => {
6
const domain = createDomain(request)
7
8
- // @ts-expect-error - This import exists but is not picked up by the typescript compiler because it's a remix internal
9
const { routes } = await import("virtual:react-router/server-build")
10
11
const sitemap = await generateRemixSitemap({
12
domain,
13
- routes,
+ // biome-ignore lint/suspicious/noExplicitAny: The types in the library are wrong
+ routes: routes as any,
14
ignore: ["/resource/*"],
15
// Transforms the url before adding it to the sitemap
16
urlTransformer: (url) => `${url}?lng=${params.lang}`,
0 commit comments