Skip to content

Commit 54df754

Browse files
committed
Converted sitemap.lang to use typegened value from react-router
1 parent 909b7f7 commit 54df754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routes/sitemap.$lang[.]xml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { generateRemixSitemap } from "@forge42/seo-tools/remix/sitemap"
2-
import type { LoaderFunctionArgs } from "react-router"
32
import { createDomain } from "~/utils/http"
3+
import { Route } from "./+types/sitemap.$lang[.]xml"
44

5-
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
5+
export const loader = async ({ request, params }: Route.LoaderArgs) => {
66
const domain = createDomain(request)
77

88
// @ts-expect-error - This import exists but is not picked up by the typescript compiler because it's a remix internal

0 commit comments

Comments
 (0)