Skip to content

Commit

Permalink
fix(web)!: disable mdxRs (#3261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts committed Mar 10, 2024
1 parent 55d7051 commit 02ffcfe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
34 changes: 0 additions & 34 deletions apps/web/components/markdown.tsx

This file was deleted.

7 changes: 2 additions & 5 deletions apps/web/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { type MDXComponents } from 'mdx/types'
import { MarkdownLink } from '@/components/markdown'

export function useMDXComponents(): MDXComponents {
return {
a: MarkdownLink
}
export function useMDXComponents(components: MDXComponents): MDXComponents {
return components
}
4 changes: 0 additions & 4 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ const withMDX = nextMDX({

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
mdxRs: true
},
async headers() {
return [
{
Expand Down Expand Up @@ -59,7 +56,6 @@ const nextConfig = {
}
]
},
swcMinify: true,
webpack(config, { defaultLoaders }) {
config.module.rules.push({
test: /\.svg$/,
Expand Down

0 comments on commit 02ffcfe

Please sign in to comment.