diff --git a/src/app/[slug]/metadataBySlug.tsx b/src/app/[slug]/metadataBySlug.tsx
index 9f30158..8c6e83f 100644
--- a/src/app/[slug]/metadataBySlug.tsx
+++ b/src/app/[slug]/metadataBySlug.tsx
@@ -1,7 +1,7 @@
import type { Metadata } from "next";
export function metadataBySlug(result: any): Metadata {
- console.log('metadataBySlug: ', result)
+
switch (result.type) {
case "product_category":
return {
diff --git a/src/app/[slug]/page.tsx b/src/app/[slug]/page.tsx
index 517cb7d..43aef52 100644
--- a/src/app/[slug]/page.tsx
+++ b/src/app/[slug]/page.tsx
@@ -22,7 +22,6 @@ export async function generateMetadata({
const { slug } = await params;
const result = await getCachedSlugData(slug);
-
if (!result) {
return { title: "Local PC" };
}
diff --git a/src/app/[slug]/renderBySlug.tsx b/src/app/[slug]/renderBySlug.tsx
index 9ac6e49..a60577c 100644
--- a/src/app/[slug]/renderBySlug.tsx
+++ b/src/app/[slug]/renderBySlug.tsx
@@ -1,4 +1,3 @@
-// src/app/[slug]/renderBySlug.tsx
import { notFound } from "next/navigation";
import ProductCategory from "@/components/product/category";
@@ -22,7 +21,7 @@ export function renderBySlug(result: any, slug: string) {
return
Tin tức đang cập nhật ... !
) + : ( + <> +
-
-
-
- {" "}
- PC Đồ Họa Siêu Khỏe - Đẹp 13900K + VGA RTX 4070{" "}
-
-
-
-
-
- {" "}
-
-
- PC Đồ Họa Siêu Khỏe - Đẹp 13900K + VGA RTX 4070
-
-
-
-
-
- {" "}
-
-
- PC Đồ Họa Siêu Khỏe - Đẹp 13900K + VGA RTX 4070
-
-
-
-
-
- {" "}
-
-
- PC Đồ Họa Siêu Khỏe - Đẹp 13900K + VGA RTX 4070
-
-
-
-
-
- {" "}
-
-
- PC Đồ Họa Siêu Khỏe - Đẹp 13900K + VGA RTX 4070
-
-
- Tin tức đang cập nhật ... !
) + : ( + <> +- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Aspernatur - quaerat vero itaque voluptatum? Repellendus laudantium est doloribus - saepe accusantium, illo numquam ullam deserunt expedita repudiandae - ipsam libero, temporibus soluta eius. -
-- {" "} - Bài viết liên quan{" "} -
- {/* Limit: 4 */} -
-
- SHARE
++ Bài viết liên quan +
+ +
-
-
-
-
-
-