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) => {
try {
await login(data);
router.push('/dashboard');
router.replace('/dashboard');
} catch (err) {
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";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const inter = Inter({ subsets: ["latin"] });
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],

View File

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