Skip to content

Commit 28638b1

Browse files
authored
Revert "chore: add language parameter to routing" (#4669)
1 parent 2f26f0e commit 28638b1

File tree

75 files changed

+166
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+166
-161
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@ import { notFound } from "next/navigation";
1717
import { type NextRequest, NextResponse } from "next/server";
1818
import urlJoin from "url-join";
1919

20-
import type { BaseParams } from "@/app/types";
21-
2220
const FORMATS = ["rss", "atom", "json"] as const;
2321
type Format = (typeof FORMATS)[number];
2422

25-
export async function GET(req: NextRequest, props: { params: Promise<BaseParams> }): Promise<NextResponse> {
23+
export async function GET(
24+
req: NextRequest,
25+
props: { params: Promise<{ host: string; domain: string }> }
26+
): Promise<NextResponse> {
2627
if (isLocal()) {
2728
return new NextResponse("changelog is not accessible in local preview mode", {
2829
status: 400
2930
});
3031
}
3132

32-
const { host, domain, lang } = await props.params;
33+
const { host, domain } = await props.params;
3334

3435
const path = slugToHref(req.nextUrl.searchParams.get("slug") ?? req.headers.get("x-fern-changelog-slug") ?? "");
3536
const format = getFormat(req);

0 commit comments

Comments
 (0)