Skip to content

Commit 6cb4436

Browse files
committed
chore(dev-hub) fix
1 parent fee1249 commit 6cb4436

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

apps/developer-hub/src/app/llms.txt/route.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { getLLMText } from "../../lib/get-llm-text";
44
import { source } from "../../lib/source";
55

66
export async function GET() {
7-
try {
87
const pages = source.getPages();
98
const scan = pages.map((page) => getLLMText(page));
109
const scanned = await Promise.all(scan);
@@ -30,9 +29,4 @@ export async function GET() {
3029
"Cache-Control": "public, max-age=3600", // Cache for 1 hour
3130
},
3231
});
33-
} catch (error) {
34-
// eslint-disable-next-line no-console
35-
console.error("LLM Text route error:", error);
36-
return new NextResponse("Internal server error", { status: 500 });
37-
}
3832
}

apps/developer-hub/src/app/mdx/[...slug]/route.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export async function GET(
77
_request: NextRequest,
88
{ params }: { params: Promise<{ slug: string[] }> },
99
) {
10-
try {
1110
const { slug } = await params;
1211
const page = source.getPage(slug);
1312

@@ -22,11 +21,6 @@ export async function GET(
2221
headers: {
2322
"Content-Type": "text/plain; charset=utf-8",
2423
"Cache-Control": "public, max-age=3600", // Cache for 1 hour
25-
},
26-
});
27-
} catch (error) {
28-
// eslint-disable-next-line no-console
29-
console.error("MDX route error:", error);
30-
return new NextResponse("Internal server error", { status: 500 });
31-
}
24+
},
25+
});
3226
}

0 commit comments

Comments
 (0)