From 2d210216f8bde2288ca3347fa445ca614f5122ea Mon Sep 17 00:00:00 2001 From: Chaeyeon1 <66813821+Chaeyeon1@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:40:07 +0900 Subject: [PATCH] #161 SEO --- .../home/[categoryId]/[postId]/page.tsx | 6 ----- client/src/app/layout.tsx | 15 +++++++++++ client/src/app/robots.ts | 11 ++++++++ client/src/app/sitemap.ts | 27 +++++++++++++++++++ 4 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 client/src/app/robots.ts create mode 100644 client/src/app/sitemap.ts diff --git a/client/src/app/[blogName]/home/[categoryId]/[postId]/page.tsx b/client/src/app/[blogName]/home/[categoryId]/[postId]/page.tsx index 44f2d23..1f95ab8 100644 --- a/client/src/app/[blogName]/home/[categoryId]/[postId]/page.tsx +++ b/client/src/app/[blogName]/home/[categoryId]/[postId]/page.tsx @@ -49,7 +49,6 @@ import { AddLikeApi, DeleteWriteApi } from '@/api/write-api'; import { enqueueSnackbar } from 'notistack'; import ThumbUpIcon from '@mui/icons-material/ThumbUp'; import { postVisitApi } from '@/api/mypage-api'; -import SEO from '@/components/SEO'; const page = ({ params }: { params: { blogName: string; categoryId: string; postId: string } }) => { const { data: blogIdData } = usegetblogIdQuery({ blogUrl: params.blogName }); @@ -177,11 +176,6 @@ const page = ({ params }: { params: { blogName: string; categoryId: string; post return ( - { + // return { + // url: `http://15.164.221.35:3000/${post.blogUrl}/home/${post.categoryId}/${post.postId}`, + // }; + // }); + + const staticUrls = [ + { + url: 'http://15.164.221.35:3000', + }, + { + url: 'http://15.164.221.35:3000/jkjk', + }, + { + url: 'http://15.164.221.35:3000/jkjk/home/5/45', + }, + ]; + + return [...staticUrls]; +}