π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix: load chakra-petch from fontsource instead of nextjs
Jonathan Irvin5f8e13803607
diff --git a/apps/frontend/src/app/layout.tsx b/apps/frontend/src/app/layout.tsxindex 3ed9e2d06..7b4912c43 100644--- a/apps/frontend/src/app/layout.tsx+++ b/apps/frontend/src/app/layout.tsx@@ -1,19 +1,14 @@import interClass from '@gitroom/react/helpers/inter.font';-export const dynamic = 'force-dynamic';import './global.scss';import 'react-tooltip/dist/react-tooltip.css';import '@copilotkit/react-ui/styles.css';-import LayoutContext from '@gitroom/frontend/components/layout/layout.context';import { ReactNode } from 'react';-import { Chakra_Petch } from 'next/font/google';import { isGeneral } from '@gitroom/react/helpers/is.general';import PlausibleProvider from 'next-plausible';import clsx from 'clsx';--// See: https://stackoverflow.com/a/76484168-const chakra = Chakra_Petch({ weight: '400', subsets: ['latin'], display: 'swap', adjustFontFallback: false });+import "@fontsource/chakra-petch";export default async function AppLayout({ children }: { children: ReactNode }) {return (@@ -25,7 +20,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {sizes="any"/></head>- <body className={clsx(chakra.className, 'text-primary dark')}>+ <body className={clsx('chakra-petch', 'text-primary dark')}><PlausibleProvider domain={isGeneral() ? "postiz.com" : "gitroom.com"}><LayoutContext>{children}</LayoutContext></PlausibleProvider>diff --git a/package-lock.json b/package-lock.jsonindex 37a0b0c60..398ea7b83 100644--- a/package-lock.json+++ b/package-lock.json@@ -20,6 +20,7 @@"@copilotkit/react-textarea": "1.1.0","@copilotkit/react-ui": "1.1.0","@copilotkit/runtime": "1.1.0",+ "@fontsource/chakra-petch": "^5.0.22","@hookform/resolvers": "^3.3.4","@mantine/core": "^5.10.5","@mantine/dates": "^5.10.5",@@ -6242,6 +6243,12 @@"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.4.tgz","integrity": "sha512-dWO2pw8hhi+WrXq1YJy2yCuWoL20PddgGaqTgVe4cOS9Q6qklXCiA1tJEqX6BEwRNSCP84/afac9hd4MS+zEUA=="},+ "node_modules/@fontsource/chakra-petch": {+ "version": "5.0.22",+ "resolved": "https://registry.npmjs.org/@fontsource/chakra-petch/-/chakra-petch-5.0.22.tgz",+ "integrity": "sha512-dYhrz0As8T7H7NGeMbcwAf84xzlxzdfcXBqcgO5lWAGezud8zrrJKGHB/9To5fNQ1ZoqDVplXy3Hu+Ye7tFbvw==",+ "license": "OFL-1.1"+ },"node_modules/@google/generative-ai": {"version": "0.11.5","resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.11.5.tgz",diff --git a/package.json b/package.jsonindex 9a5c2dc69..5f92d7962 100644--- a/package.json+++ b/package.json@@ -31,6 +31,7 @@"@copilotkit/react-textarea": "1.1.0","@copilotkit/react-ui": "1.1.0","@copilotkit/runtime": "1.1.0",+ "@fontsource/chakra-petch": "^5.0.22","@hookform/resolvers": "^3.3.4","@mantine/core": "^5.10.5","@mantine/dates": "^5.10.5",