mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 11:24:26 +00:00
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.
This commit is contained in:
@@ -262,7 +262,7 @@ export async function GET(request: NextRequest) {
|
||||
<div class="card">
|
||||
<div>
|
||||
<span class="method ${api.method.toLowerCase()}">${api.method}</span>
|
||||
${api.name.includes('FASE') ? `<span class="badge ${api.name.includes('FASE 5') ? 'phase-5' : 'phase-6'}">${api.name.match(/FASE \d+/)[0]}</span>` : ''}
|
||||
${api.name.includes('FASE') ? `<span class="badge ${api.name.includes('FASE 5') ? 'phase-5' : 'phase-6'}">${api.name.match(/FASE \d+/)?.[0] || 'FASE'}</span>` : ''}
|
||||
</div>
|
||||
<h3>${api.name}</h3>
|
||||
<a href="${baseUrl}${api.url}" target="_blank">${baseUrl}${api.url}</a>
|
||||
Reference in New Issue
Block a user