Skip to content

Add SvelteKit 3 support - #120

Merged
feugy merged 5 commits into
canaryfrom
feugy/sveltekit-3-support
Jul 3, 2026
Merged

feugy merged 5 commits into
canaryfrom
feugy/sveltekit-3-support

Conversation

@feugy

@feugy feugy commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

🖖🏻 What's in there?

Adds SvelteKit 3 support via @vercel/speed-insights/sveltekit-next while keeping @vercel/speed-insights/sveltekit on the existing SvelteKit 2 integration, and bumps the canary package version to 2.1.0-canary.

Introduce a new test application deployed on Vercel for sveltekit@3

🤺 How to test?

Ultimate test is to use the test apps:

Visit these apps with your devtools open on the network tab,
Click in the body for triggering FID measurement (it's optional, in this case only LCP, TTFB and FCP will be measured)
Click on the link to navigate away
Check the payload of the POST to /vitals: you'll see the metrics, attributed to the correct route.

🔬 Notes to reviewers

Builds on and refines the excellent original attempt in #118. That PR did the important groundwork of identifying the SvelteKit 3 shift from $app/stores to $app/state; this keeps that direction while preserving the stable SvelteKit 2 export.

@feugy
feugy requested a review from tobiaslins July 2, 2026 14:22
@vercel

vercel Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
speed-insights-astro Ready Ready Preview, Comment Jul 3, 2026 12:08pm
speed-insights-nextjs Ready Ready Preview, Comment Jul 3, 2026 12:08pm
speed-insights-nuxt Ready Ready Preview, Comment Jul 3, 2026 12:08pm
speed-insights-remix Ready Ready Preview, Comment Jul 3, 2026 12:08pm
speed-insights-sveltekit Ready Ready Preview, Comment Jul 3, 2026 12:08pm
speed-insights-sveltekit-old Ready Ready Preview, Comment Jul 3, 2026 12:08pm
speed-insights-vue Ready Ready Preview, Comment Jul 3, 2026 12:08pm

Request Review

Comment thread packages/web/src/sveltekit-next/index.ts Outdated
Comment thread packages/web/tsup.config.js
Comment thread packages/web/src/sveltekit-next/index.ts Outdated
Comment thread apps/sveltekit/vite.config.js Outdated
@teemingc teemingc mentioned this pull request Jul 2, 2026
10 tasks
@feugy
feugy merged commit 1004e73 into canary Jul 3, 2026
13 checks passed
@feugy
feugy deleted the feugy/sveltekit-3-support branch July 3, 2026 12:18

This branch was successfully deployed

7 active deployments
Preview – speed-insights-remix — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Preview – speed-insights-sveltekit-old — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Preview – speed-insights-nextjs — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Preview – speed-insights-sveltekit — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Preview – speed-insights-nuxt — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Preview – speed-insights-vue — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Preview – speed-insights-astro — 6baad104 Deployed Jul 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants