Skip to content

Commit

Permalink
fix: font reload issues with next/font
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Irvin <djfoxyslpr@gmail.com>
  • Loading branch information
jonathan-irvin committed Sep 9, 2024
1 parent 53c175f commit 979f4e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { isGeneral } from '@gitroom/react/helpers/is.general';
import PlausibleProvider from 'next-plausible';
import clsx from 'clsx';

const chakra = Chakra_Petch({ weight: '400', subsets: ['latin'] });
// See: https://stackoverflow.com/a/76484168
const chakra = Chakra_Petch({ weight: '400', subsets: ['latin'], display: 'swap', adjustFontFallback: false });

export default async function AppLayout({ children }: { children: ReactNode }) {
return (
Expand Down

0 comments on commit 979f4e0

Please sign in to comment.