Skip to content

Commit eae6335

Browse files
committed
build: force to be a dynamic route
1 parent cea9384 commit eae6335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/app/llms.mdx/[[...slug]]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { type NextRequest, NextResponse } from "next/server";
33
import { getLLMText } from "@/lib/get-llm-text";
44
import { notFound } from "next/navigation";
55

6+
export const dynamic = "force-dynamic";
67
export const revalidate = false;
78

89
export async function GET(
910
_req: NextRequest,
1011
{ params }: { params: Promise<{ slug: string[] }> },
1112
) {
1213
const slug = (await params).slug;
13-
slug.shift();
1414
const page = source.getPage(slug);
1515
if (!page) {
1616
notFound();

0 commit comments

Comments
 (0)