From e0d0cd1055e66869ed2d8b2c97121f5da8175fb9 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Mon, 19 Jan 2026 00:29:44 -0600 Subject: [PATCH] fix: Move testlinks page to API route to resolve static generation error - Moved /app/testlinks/page.tsx to /app/api/testlinks/route.ts - Fixed TypeScript null safety issue in regex match - Removed empty testlinks directory This resolves the 'Unsupported Server Component type: Module' error during build. --- app/{testlinks/page.tsx => api/testlinks/route.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename app/{testlinks/page.tsx => api/testlinks/route.ts} (99%) diff --git a/app/testlinks/page.tsx b/app/api/testlinks/route.ts similarity index 99% rename from app/testlinks/page.tsx rename to app/api/testlinks/route.ts index 5b35f48..ed6094c 100644 --- a/app/testlinks/page.tsx +++ b/app/api/testlinks/route.ts @@ -262,7 +262,7 @@ export async function GET(request: NextRequest) {
${api.method} - ${api.name.includes('FASE') ? `${api.name.match(/FASE \d+/)[0]}` : ''} + ${api.name.includes('FASE') ? `${api.name.match(/FASE \d+/)?.[0] || 'FASE'}` : ''}

${api.name}

${baseUrl}${api.url} @@ -284,4 +284,4 @@ export async function GET(request: NextRequest) { 'Content-Type': 'text/html; charset=utf-8', }, }) -} +} \ No newline at end of file