File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
apps/developer-hub/src/app Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { getLLMText } from "../../lib/get-llm-text";
44import { source } from "../../lib/source" ;
55
66export 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments