We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea9384 commit eae6335Copy full SHA for eae6335
docs/app/llms.mdx/[[...slug]]/route.ts
@@ -3,14 +3,14 @@ import { type NextRequest, NextResponse } from "next/server";
3
import { getLLMText } from "@/lib/get-llm-text";
4
import { notFound } from "next/navigation";
5
6
+export const dynamic = "force-dynamic";
7
export const revalidate = false;
8
9
export async function GET(
10
_req: NextRequest,
11
{ params }: { params: Promise<{ slug: string[] }> },
12
) {
13
const slug = (await params).slug;
- slug.shift();
14
const page = source.getPage(slug);
15
if (!page) {
16
notFound();
0 commit comments