import type { Metadata } from "next"; import { K2D } from "next/font/google"; import { ThemeProvider } from "next-themes"; import "./globals.css"; const defaultUrl = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "http://localhost:3000"; export const metadata: Metadata = { metadataBase: new URL(defaultUrl), title: "Next.js and Supabase Starter Kit", description: "The fastest way to build apps with Next.js and Supabase", }; const k2d = K2D({ variable: "--font-k2d", subsets: ["thai"], weight: ["100", "200", "300", "400", "500", "600", "700", "800"], }); export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return (