diff --git a/apps/www/src/app/[...slug]/page.tsx b/apps/www/src/app/[...slug]/page.tsx index d977fed..6f6d7db 100644 --- a/apps/www/src/app/[...slug]/page.tsx +++ b/apps/www/src/app/[...slug]/page.tsx @@ -1,7 +1,7 @@ import '@/styles/prism.css'; -import { notFound } from 'next/navigation'; -import { PostLayout } from '@/components/layout'; +// import { notFound } from 'next/navigation'; +// import { PostLayout } from '@/components/layout'; import { allPosts } from '@/constants/posts'; import { PostType } from '@/types/post'; import { getArticleMetadata } from '@/utils/seo'; @@ -18,10 +18,18 @@ export const generateMetadata = ({ params }: { params: { slug: string[] } }) => const PostPage = ({ params }: { params: { slug: string[] } }) => { const flattenedPath = params.slug.join('/'); + console.log(flattenedPath); const post = allPosts.find(post => post._raw.flattenedPath === flattenedPath); - if (!post) notFound(); + return ( +
+ {flattenedPath} +
+ {JSON.stringify(post)} +
+ ); + // if (!post) notFound(); - return ; + // return ; }; export default PostPage; diff --git a/apps/www/src/recoil/sidebar.ts b/apps/www/src/recoil/sidebar.ts index 5af2c64..811a1c1 100644 --- a/apps/www/src/recoil/sidebar.ts +++ b/apps/www/src/recoil/sidebar.ts @@ -16,7 +16,6 @@ export const openSidebarState = selector({ return get(openSidebarAtom); }, set: ({ set }, newVal) => { - console.log(newVal); if (newVal) { document.body.classList.toggle('hidden', true); const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;