Explorar el Código

chore(dev-hub) fix

Aditya Arora hace 3 semanas
padre
commit
5fa595bd60

+ 1 - 1
apps/developer-hub/next.config.js

@@ -4,7 +4,7 @@ const config = {
   reactStrictMode: true,
   pageExtensions: ["ts", "tsx", "mdx"],
   outputFileTracingIncludes: {
-    "/": ["./content/docs/**"],
+    "/*": ["./content/docs/**"],
   },
 
   logging: {

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

@@ -30,7 +30,9 @@ export async function GET() {
         "Cache-Control": "public, max-age=3600", // Cache for 1 hour
       },
     });
-  } catch {
+  } catch (error) {
+    // eslint-disable-next-line no-console
+    console.error('LLM Text route error:', error);
     return new NextResponse("Internal server error", { status: 500 });
   }
 }

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

@@ -24,7 +24,9 @@ export async function GET(
         "Cache-Control": "public, max-age=3600", // Cache for 1 hour
       },
     });
-  } catch {
+  } catch (error) {
+    // eslint-disable-next-line no-console
+    console.error('MDX route error:', error);
     return new NextResponse("Internal server error", { status: 500 });
   }
 }