add vercel speed-insights
This commit is contained in:
@ -19,6 +19,7 @@ import { defaultFavicons } from "../constants/icon";
|
||||
import type { Favicon } from "../types/config";
|
||||
import { pathsEqual, url } from "../utils/url-utils";
|
||||
import "katex/dist/katex.css";
|
||||
import SpeedInsights from "@vercel/speed-insights/astro";
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
@ -154,6 +155,8 @@ const bannerOffset =
|
||||
<ConfigCarrier></ConfigCarrier>
|
||||
<slot />
|
||||
|
||||
<SpeedInsights />
|
||||
|
||||
<!-- increase the page height during page transition to prevent the scrolling animation from jumping -->
|
||||
<div id="page-height-extend" class="hidden h-[300vh]"></div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user