Skip to content

Commit 346ad01

Browse files
committed
feat: v1.7.4 — re-add speed insights
- vercel speed insights re-enabled via @vercel/speed-insights, mounted next to web analytics in the root layout — the hobby-plan one-project cap that forced its removal in v1.7.0 no longer exists - /privacy updated to disclose the new performance data collected
1 parent d574a24 commit 346ad01

6 files changed

Lines changed: 66 additions & 10 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ InfraLens's history as a standalone product (2026-01-06 to 2026-08-10) is
99
frozen in [`docs/infralens/CHANGELOG.md`](docs/infralens/CHANGELOG.md).
1010
InfraLens changes since its native migration are recorded here.
1111

12+
## [1.7.4] — 2026-09-02
13+
14+
### Added
15+
16+
- **Vercel Speed Insights** — enabled site-wide via `@vercel/speed-insights`,
17+
mounted in the root layout next to Web Analytics. Previously reverted in
18+
v1.7.0 because the Hobby plan only allowed it free on one project;
19+
Vercel removed that per-project cap, so it now ships alongside Web
20+
Analytics. `/privacy` updated to disclose the new data collected.
21+
1222
## [1.7.3] — 2026-08-26
1323

1424
### Added

‎app/layout.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { SiteHeader } from "@/components/layout/site-header";
44
import { brand } from "@/lib/brand";
55
import { buildOrganizationSchema, buildPersonSchema } from "@/lib/json-ld";
66
import { Analytics } from "@vercel/analytics/next";
7+
import { SpeedInsights } from "@vercel/speed-insights/next";
78
import { MotionConfig } from "framer-motion";
89
import type { Metadata, Viewport } from "next";
910
import { Geist, Geist_Mono } from "next/font/google";
@@ -87,6 +88,7 @@ export default function RootLayout({
8788
<SiteFooter />
8889

8990
<Analytics />
91+
<SpeedInsights />
9092
</body>
9193
</html>
9294
);

‎app/privacy/page.tsx‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function ConfidentialitePage() {
7171
<span className="mt-0.5 text-zinc-500">—</span>
7272
<span>
7373
<span className="font-medium text-zinc-200">Vercel</span> —
74-
hébergement et Web Analytics.
74+
hébergement, Web Analytics et Speed Insights.
7575
</span>
7676
</li>
7777
<li className="flex items-start gap-2">
@@ -107,6 +107,12 @@ export default function ConfidentialitePage() {
107107
et avec une identification visiteur anonymisée et effacée sous 24h,
108108
pour comprendre l&apos;usage du site.
109109
</p>
110+
<p>
111+
<span className="font-medium text-zinc-200">Speed Insights</span> —
112+
métriques de performance de chargement des pages (Core Web Vitals),
113+
collectées par Vercel sans cookies ni identification du visiteur, pour
114+
suivre la performance du site.
115+
</p>
110116
<p>
111117
<span className="font-medium text-zinc-200">Adresse IP</span> —
112118
utilisée uniquement comme clé de limitation de débit (anti-abus) via
@@ -160,9 +166,9 @@ export default function ConfidentialitePage() {
160166

161167
<Block title="Cookies">
162168
<p>
163-
Le site n&apos;utilise aucun cookie tiers. Vercel Web Analytics
164-
fonctionne sans cookie ; aucune bannière de consentement n&apos;est
165-
donc nécessaire.
169+
Le site n&apos;utilise aucun cookie tiers. Vercel Web Analytics et
170+
Speed Insights fonctionnent sans cookie ; aucune bannière de
171+
consentement n&apos;est donc nécessaire.
166172
</p>
167173
</Block>
168174
</PageShell>

‎next.config.mjs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ const nextConfig = {
5353
async headers() {
5454
// React utilise eval() en mode dev pour reconstruire les call stacks
5555
// (jamais en production — cf. son propre avertissement console), et
56-
// @vercel/analytics charge son script de debug depuis
57-
// va.vercel-scripts.com en dev (en prod il passe par /_vercel/... en
58-
// same-origin, déjà couvert par 'self'). On assouplit script-src
59-
// uniquement ici pour retirer le bruit console en local, sans toucher à
60-
// la CSP réellement servie en production.
56+
// @vercel/analytics et @vercel/speed-insights chargent leur script de
57+
// debug depuis va.vercel-scripts.com en dev (en prod ils passent par
58+
// /_vercel/... en same-origin, déjà couvert par 'self'). On assouplit
59+
// script-src uniquement ici pour retirer le bruit console en local,
60+
// sans toucher à la CSP réellement servie en production.
6161
const scriptSrc =
6262
process.env.NODE_ENV === "development"
6363
? "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com"

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "randy-code",
3-
"version": "1.7.3",
3+
"version": "1.7.4",
44
"private": true,
55
"packageManager": "pnpm@10.7.0",
66
"scripts": {
@@ -24,6 +24,7 @@
2424
"@upstash/ratelimit": "^2.0.8",
2525
"@upstash/redis": "^1.38.2",
2626
"@vercel/analytics": "^2.0.1",
27+
"@vercel/speed-insights": "^2.0.0",
2728
"class-variance-authority": "^0.7.1",
2829
"clsx": "^2.1.1",
2930
"framer-motion": "^12.43.0",

‎pnpm-lock.yaml‎

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)