metadata reset

This commit is contained in:
dimitar 2025-03-24 02:59:36 +01:00
parent 9857acd4c1
commit 30255ce3c2
3 changed files with 5 additions and 8 deletions

View File

@ -24,7 +24,7 @@ export default function LoginPage() {
const onSubmit = async (data: any) => { const onSubmit = async (data: any) => {
try { try {
await login(data); await login(data);
router.push('/dashboard'); router.replace('/dashboard');
} catch (err) { } catch (err) {
setError('Invalid email or password'); setError('Invalid email or password');
} }

View File

@ -1,9 +1,6 @@
import { Geist, Geist_Mono } from "next/font/google"; import { Inter } from "next/font/google";
import "./globals.css"; import "./globals.css";
const geistSans = Geist({ const inter = Inter({ subsets: ["latin"] });
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({ const geistMono = Geist_Mono({
variable: "--font-geist-mono", variable: "--font-geist-mono",
subsets: ["latin"], subsets: ["latin"],

View File

@ -5,8 +5,8 @@ import './globals.css';
const inter = Inter({ subsets: ['latin'] }); const inter = Inter({ subsets: ['latin'] });
export const metadata: Metadata = { export const metadata: Metadata = {
title: 'Next.js App with Auth', title: '',
description: 'A Next.js app with authentication', description: '',
}; };
export default function RootLayout({ export default function RootLayout({