mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Remove mdx-embed to fix build
This commit is contained in:
@@ -14,7 +14,7 @@ interface Props {
|
|||||||
|
|
||||||
const Card: FC<Props> = ({ title, description, image, tags, href, target, onClick }) => {
|
const Card: FC<Props> = ({ title, description, image, tags, href, target, onClick }) => {
|
||||||
return (
|
return (
|
||||||
<StyledCard href={href} onClick={onClick} image={Boolean(image)} target={target}>
|
<StyledCard href={href} onClick={onClick} image={image ? Boolean(image) : undefined} target={target}>
|
||||||
<div className='card-content'>
|
<div className='card-content'>
|
||||||
<h3>{title}</h3>
|
<h3>{title}</h3>
|
||||||
<p>{description}</p>
|
<p>{description}</p>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
export const StyledCard = styled(Link)<{ image: boolean }>`
|
export const StyledCard = styled(Link)<{ image?: boolean }>`
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
Vendored
@@ -12,7 +12,6 @@
|
|||||||
"@mdx-js/loader": "^2.3.0",
|
"@mdx-js/loader": "^2.3.0",
|
||||||
"@next/mdx": "^13.2.4",
|
"@next/mdx": "^13.2.4",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"mdx-embed": "^1.1.2",
|
|
||||||
"next": "^13.2.4",
|
"next": "^13.2.4",
|
||||||
"next-mdx-remote": "^4.4.1",
|
"next-mdx-remote": "^4.4.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { getBlogPostsSlugs, getBlogPostdata } from '../../utils/blog';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote';
|
import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote';
|
||||||
import { MDXProvider } from '@mdx-js/react';
|
import { MDXProvider } from '@mdx-js/react';
|
||||||
import { MDXEmbedProvider } from 'mdx-embed';
|
|
||||||
import { GetStaticPaths, GetStaticProps } from 'next';
|
import { GetStaticPaths, GetStaticProps } from 'next';
|
||||||
import { serialize } from 'next-mdx-remote/serialize';
|
import { serialize } from 'next-mdx-remote/serialize';
|
||||||
import { Wrapper } from '../../styles/blog/slug';
|
import { Wrapper } from '../../styles/blog/slug';
|
||||||
@@ -84,17 +83,15 @@ const BlogPost: FC<Props> = ({ source, frontMatter, text }) => {
|
|||||||
) : null}
|
) : null}
|
||||||
{frontMatter?.image ? (
|
{frontMatter?.image ? (
|
||||||
<div className='image'>
|
<div className='image'>
|
||||||
<Image alt={frontMatter?.title} src={frontMatter.image} fill />
|
<Image alt={frontMatter?.title} src={frontMatter?.image} fill />
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
<MDXProvider components={{ ...htmlOverrides, ...mdxComponents }}>
|
<MDXProvider components={{ ...htmlOverrides, ...mdxComponents }}>
|
||||||
<MDXEmbedProvider>
|
<div className='content'>
|
||||||
<div className='content'>
|
<MDXRemote {...source} />
|
||||||
<MDXRemote {...source} />
|
</div>
|
||||||
</div>
|
|
||||||
</MDXEmbedProvider>
|
|
||||||
</MDXProvider>
|
</MDXProvider>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
</>
|
</>
|
||||||
|
|||||||
+1
-1
@@ -18,5 +18,5 @@
|
|||||||
"jsx": "preserve"
|
"jsx": "preserve"
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"],
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
|
"include": ["**/*.d.ts", "**/*.ts", "**/*.tsx"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -946,11 +946,6 @@ mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/mdast" "^3.0.0"
|
"@types/mdast" "^3.0.0"
|
||||||
|
|
||||||
mdx-embed@^1.1.2:
|
|
||||||
version "1.1.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/mdx-embed/-/mdx-embed-1.1.2.tgz#04468e8dcb3be9fe3e65207e88a83d2f76555a24"
|
|
||||||
integrity sha512-AAronHC/sh4py+RhJOuX8+9+lyUbJsmCLquXNPCEHZ0llPWjMuwls77hII/lWI2kwBSPZPahrqti8kGTv1pi1w==
|
|
||||||
|
|
||||||
micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1:
|
micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1:
|
||||||
version "1.0.6"
|
version "1.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-1.0.6.tgz#edff4c72e5993d93724a3c206970f5a15b0585ad"
|
resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-1.0.6.tgz#edff4c72e5993d93724a3c206970f5a15b0585ad"
|
||||||
|
|||||||
Reference in New Issue
Block a user