PR Summary #1
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes critical server-side rendering issues in admin pages and improves error handling across the application. The main changes address Next.js 15 compatibility issues and server-side API connection problems that were causing "AggregateError" failures when loading admin pages. Key Fixes:
Server-side API connection: Fixed axiosServer.ts to use the correct environment variable (API_BASE_URL instead of NEXT_PUBLIC_API_BASE_URL) and added SSL certificate handling with an HTTPS agent to properly connect to the backend API from server components
Next.js 15 compatibility: Removed outdated cookies() usage from admin pages (devices and users) that was causing issues after the Next.js 15 upgrade, as the token is already available through requireAuthOrRedirect()
Error handling: Added comprehensive try-catch blocks to both admin pages with proper error logging and meaningful error messages, replacing cryptic "AggregateError" messages with actionable diagnostics
CVE verification: Added new "Verify CVE Count" button in AdminControlsPanel that uses the GitHub API to cross-check CVE data
Impact: Admin pages (devices and users) now load correctly without connection errors, and any failures provide clear error messages for debugging.