diff --git a/app/robots.ts b/app/robots.ts index 2ba1b31..906cb23 100644 --- a/app/robots.ts +++ b/app/robots.ts @@ -1,14 +1,12 @@ - -import { MetadataRoute } from 'next' -import { metadata } from './layout' +import { MetadataRoute } from "next"; export default function robots(): MetadataRoute.Robots { return { rules: { - userAgent: '*', - allow: '/', - disallow: '/private/', + userAgent: "*", + allow: "/", + disallow: "/private/", }, - sitemap: `${metadata.metadataBase}sitemap.xml`, - } + sitemap: `sitemap.xml`, + }; } diff --git a/app/sitemap.ts b/app/sitemap.ts index 5a845f2..580041f 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -1,11 +1,10 @@ -import { MetadataRoute } from 'next' -import { metadata } from './layout' +import { MetadataRoute } from "next"; export default function sitemap(): MetadataRoute.Sitemap { return [ { - url: `${metadata.metadataBase}`, + url: `/`, lastModified: new Date(), }, - ] + ]; } diff --git a/middleware.ts b/middleware.ts index 78bd1a4..d12339f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -1,7 +1,7 @@ import { authMiddleware } from "@clerk/nextjs"; export default authMiddleware({ - publicRoutes: ["/"] + publicRoutes: ["/"], }); export const config = {