Skip to main content
Glama
RootHTMLLayout.tsx1.49 kB
import { cn } from '@utils/cn'; import type { LocalesValues } from 'intlayer'; import { getHTMLTextDir } from 'intlayer'; import { Inter } from 'next/font/google'; import type { FC, HTMLProps } from 'react'; const inter = Inter({ subsets: ['latin'], display: 'swap', preload: true, }); export type LocalParams = HTMLProps<HTMLHtmlElement> & { bodyProps?: HTMLProps<HTMLBodyElement>; locale: LocalesValues; }; export const RootHTMLLayout: FC<LocalParams> = ({ children, className, locale, bodyProps, ...props }) => ( <html lang={locale} dir={getHTMLTextDir(locale)} suppressHydrationWarning {...props} > <head> {/* Preconnect and DNS Prefetch for Google Tag Manager */} <link rel="preconnect" href="https://www.googletagmanager.com" crossOrigin="" /> <link rel="dns-prefetch" href="https://www.googletagmanager.com" /> {/* Preconnect and DNS Prefetch for your first-party backend */} <link rel="preconnect" href={process.env.NEXT_PUBLIC_BACKEND_URL} crossOrigin="" /> <link rel="dns-prefetch" href={process.env.NEXT_PUBLIC_BACKEND_URL} /> </head> <body className={cn( 'relative flex size-full min-h-screen flex-col overflow-auto overflow-x-clip scroll-smooth bg-background leading-8 transition md:flex', inter.className, className )} {...bodyProps} > {children} </body> </html> );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server