File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import type { Route } from "./+types/sitemap.$lang[.]xml"
55export const loader = async ( { request, params } : Route . LoaderArgs ) => {
66 const domain = createDomain ( request )
77
8- // @ts -expect-error - This import exists but is not picked up by the typescript compiler because it's a remix internal
98 const { routes } = await import ( "virtual:react-router/server-build" )
109
1110 const sitemap = await generateRemixSitemap ( {
1211 domain,
13- routes,
12+ // biome-ignore lint/suspicious/noExplicitAny: The types in the library are wrong
13+ routes : routes as any ,
1414 ignore : [ "/resource/*" ] ,
1515 // Transforms the url before adding it to the sitemap
1616 urlTransformer : ( url ) => `${ url } ?lng=${ params . lang } ` ,
You can’t perform that action at this time.
0 commit comments