Hi, I'm trying to integrate Vercel Speed Insights into a Starlight project. I added a custom Head component, that's currently working:
---
import { SpeedInsights } from '@vercel/speed-insights/next'
import Default from '@astrojs/starlight/components/Head.astro'
import type { Props } from '@astrojs/starlight/props'
---
<Default {...Astro.props}><slot /></Default>
<SpeedInsights />
I added some fake metadata just to check if my astro.config.mjs where working:
components: {
// Override the default `SocialIcons` component.
Head: './src/components/Head.astro'
},
The custom head component is working. The default head props are passing through, but I'm not seeing the script.js from Vercel in the body of the page.