Skip to content

Commit b4e90d4

Browse files
committed
Clean up and optimize build
- Remove unused MDX dependencies and configuration - Delete unused components (AnimatedLanguageSwitcher, AnimatedText, Foundations) - Remove unused utility files (clamp.ts) - Clean up unused imports and variables across components - Simplify Next.js configuration - Fix function signatures in avatar utility - Reduce bundle size and improve build performance
1 parent 2230fa8 commit b4e90d4

File tree

10 files changed

+7
-531
lines changed

10 files changed

+7
-531
lines changed

next.config.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import type { NextConfig } from "next";
2-
import createMDX from '@next/mdx';
32

43
const nextConfig: NextConfig = {
5-
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
6-
experimental: {
7-
mdxRs: true,
8-
},
94
output: 'export',
105
trailingSlash: true,
116
assetPrefix: '/design',
@@ -15,11 +10,4 @@ const nextConfig: NextConfig = {
1510
},
1611
};
1712

18-
const withMDX = createMDX({
19-
options: {
20-
remarkPlugins: [],
21-
rehypePlugins: [],
22-
},
23-
});
24-
25-
export default withMDX(nextConfig);
13+
export default nextConfig;

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@
66
"dev": "next dev --turbopack",
77
"build": "next build --turbopack",
88
"start": "next start",
9-
"lint": "eslint",
10-
"export": "next build && next export",
11-
"deploy": "npm run build && touch out/.nojekyll && git add out/ && git commit -m 'Deploy to GitHub Pages' && git subtree push --prefix out origin gh-pages"
9+
"lint": "eslint"
1210
},
1311
"dependencies": {
14-
"@mdx-js/loader": "^3.1.1",
15-
"@mdx-js/react": "^3.1.1",
16-
"@next/mdx": "^15.5.3",
17-
"@types/mdx": "^2.0.13",
1812
"framer-motion": "^12.23.12",
1913
"lucide-react": "^0.544.0",
2014
"next": "15.5.3",

src/components/AnimatedLanguageSwitcher.tsx

Lines changed: 0 additions & 151 deletions
This file was deleted.

src/components/AnimatedText.tsx

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)