feat: add performance insights feature with toggle in settings and conditional rendering in dashboard pages

This commit is contained in:
Usman Baig
2026-01-19 14:40:42 +01:00
parent 61bdf41b9c
commit 088e22512a
5 changed files with 50 additions and 8 deletions

View File

@@ -271,8 +271,8 @@ export default function PublicDashboardPage() {
/>
</div>
{/* Performance Stats */}
{performance && (
{/* Performance Stats - Only show if enabled */}
{performance && data.site?.enable_performance_insights && (
<div className="mb-8">
<PerformanceStats stats={performance} />
</div>