Files
PascalSchattenburg d147843c76 feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router
- Implemented dynamic [slug] pages for blog posts
- Added MDX-based content loading via lib/posts
- Integrated shared TopBar layout with navigation
- Established clear content, lib and component separation
2026-01-22 14:14:15 +01:00

16 lines
491 B
JavaScript

import { useEffect } from 'react';
import { onLCP, onFID, onCLS, onINP, onFCP, onTTFB } from 'next/dist/compiled/web-vitals';
export function useReportWebVitals(reportWebVitalsFn) {
useEffect(()=>{
onCLS(reportWebVitalsFn);
onFID(reportWebVitalsFn);
onLCP(reportWebVitalsFn);
onINP(reportWebVitalsFn);
onFCP(reportWebVitalsFn);
onTTFB(reportWebVitalsFn);
}, [
reportWebVitalsFn
]);
}
//# sourceMappingURL=web-vitals.js.map