add vercel speed-insights

This commit is contained in:
2026-04-05 09:16:57 +08:00
parent e1e91fcdda
commit 1765d16a39
3 changed files with 91 additions and 0 deletions

View File

@ -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>