diff --git a/app/[not_found]/page.tsx b/app/[not_found]/page.tsx index a0b98b4..0fff366 100644 --- a/app/[not_found]/page.tsx +++ b/app/[not_found]/page.tsx @@ -1,5 +1,10 @@ +import { Metadata } from 'next'; import { notFound } from 'next/navigation'; +export const metadata: Metadata = { + title: 'Not found', +}; + export default function NotFoundCatchAll() { notFound(); } diff --git a/app/error.tsx b/app/error.tsx index 71ecff6..86721b8 100644 --- a/app/error.tsx +++ b/app/error.tsx @@ -9,8 +9,13 @@ import { ShopifyFeaturedCollectionOperation, ShopifyFeaturedProductOperation, } from '@/lib/shopify/types'; +import { Metadata } from 'next'; import { useEffect, useRef, useState } from 'react'; +export const metadata: Metadata = { + title: 'Error', +}; + export default function Error({ error, reset, diff --git a/app/layout.tsx b/app/layout.tsx index 5f1058b..51cdca0 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -6,12 +6,15 @@ import { getLayoutData } from '@/lib/shopify'; import Footer from './compoents/Footer'; import Header from './compoents/Header'; import { cookies } from 'next/headers'; +import { Metadata } from 'next'; const inter = Inter({ subsets: ['latin'] }); -export const metadata = { - title: 'Create Next App', - description: 'Generated by create next app', +export const metadata: Metadata = { + title: 'This Dot Demo Store', + description: + 'The best place to buy snowboarding products offered by This Dot', + viewport: { width: 'device-width', initialScale: 1 }, }; export default async function RootLayout({ diff --git a/app/page.tsx b/app/page.tsx index 9b14b9f..f70b8c9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -9,6 +9,12 @@ import { getTertiaryHero, } from '@/lib/shopify'; import Head from 'next/head'; +import { Metadata } from 'next'; + +export const metadata: Metadata = { + title: 'Home | This Dot Demo Store', + robots: 'index, follow', +}; export default async function Homepage() { const seoStructuredData = { @@ -26,12 +32,6 @@ export default async function Homepage() { return ( <> - Home | This Dot Demo Store - -