fix: font reload issues with next/font

Signed-off-by: Jonathan Irvin <djfoxyslpr@gmail.com>
This commit is contained in:
Jonathan Irvin 2024-09-09 09:52:20 -05:00
parent 53c175f3d8
commit 979f4e04d9
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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 (