Skip to content

Commit

Permalink
ops9
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Jan 13, 2024
1 parent 597eb13 commit 50cd478
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/blog/[slug]/page.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';

import dynamic from 'next/dynamic';
import s from 'styles/pages/blog/[slug].module.css';
import Article from 'components/articles';

// import { getArticle } from 'lib/articles/parser';

Expand Down Expand Up @@ -46,8 +45,10 @@ import Article from 'components/articles';
// }

export default function BlogArticle({ params }) {
'use client';
const { slug } = params;
const { default: AsterismTheBfOfLyra, metadata = {} } = require(`../../../articles/${slug}.mdx`);
const Article = dynamic(() => import('components/articles'), { ssr: false });

return (
<div className={s.root}>
Expand Down

0 comments on commit 50cd478

Please sign in to comment.