perf: remove unused root layout font initialization#43
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a17d357697
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| import type React from "react" | ||
| import type { Metadata, Viewport } from "next" | ||
| import { Geist, Geist_Mono } from "next/font/google" | ||
| import { Analytics } from "@vercel/analytics/next" |
There was a problem hiding this comment.
Keep Geist font registration in root layout
Removing the Geist/Geist_Mono initialization also removes the only next/font registration in the app, so the font-sans stack now points at "Geist"/"Geist Fallback" names that are never defined (see app/globals.css lines 397-398). In environments where Geist is not locally installed, text will silently fall back to a different system font, so this change does alter typography despite being labeled as no-op.
Useful? React with 👍 / 👎.
|
Bugbot Autofix prepared fixes for 1 of the 1 bugs found in the latest run.
|
623e1a2 to
ff5051f
Compare
Summary
GeistandGeist_Monoinitialization from the root layoutfont-sansremains in use)Closes #31
Note
Low Risk
Small cleanup limited to removing unused font code in the root layout; minimal chance of visual regressions since the variables were not referenced.
Overview
Removes the unused
Geist/Geist_Monoimports and initialization fromapp/layout.tsx, leaving the layout to rely on existing global styling (e.g.,font-sans) without changing runtime behavior.Written by Cursor Bugbot for commit ff5051f. This will update automatically on new commits. Configure here.