More changes that I would want my example to have I think

This commit is contained in:
2025-08-28 16:04:14 -05:00
parent 44d2ba3c5e
commit b5a726e359
26 changed files with 963 additions and 57 deletions

View File

@@ -1,8 +1,11 @@
import type { Metadata } from 'next';
import { Geist, Geist_Mono } from 'next/font/google';
import './globals.css';
import '@/styles/globals.css';
import { ConvexAuthNextjsServerProvider } from '@convex-dev/auth/nextjs/server';
import ConvexClientProvider from '@/components/ConvexClientProvider';
import { ConvexClientProvider, ThemeProvider } from '@/components/providers';
import PlausibleProvider from 'next-plausible';
import { generateMetadata } from '@/lib/metadata';
const geistSans = Geist({
variable: '--font-geist-sans',
subsets: ['latin'],
@@ -13,13 +16,7 @@ const geistMono = Geist_Mono({
subsets: ['latin'],
});
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
icons: {
icon: '/convex.svg',
},
};
export const metadata: Metadata = generateMetadata();
export default function RootLayout({
children,
@@ -28,13 +25,26 @@ export default function RootLayout({
}>) {
return (
<ConvexAuthNextjsServerProvider>
<PlausibleProvider
domain='techtracker.gbrown.org'
customDomain='https://plausible.gbrown.org'
>
<html lang='en'>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<ConvexClientProvider>{children}</ConvexClientProvider>
<ThemeProvider
attribute='class'
defaultTheme='system'
enableSystem
disableTransitionOnChange
>
<ConvexClientProvider>{children}</ConvexClientProvider>
</ThemeProvider>
</body>
</html>
</PlausibleProvider>
</ConvexAuthNextjsServerProvider>
);
}