imnya.ng/next.config.ts
imnyang 35f2c41d7b
feat: add MDX support and blog functionality
- Updated next.config.ts to include MDX support with new page extensions.
- Added dependencies for MDX in package.json.
- Refactored Home component to include BlogList.
- Adjusted layout and styling in Projects and Timeline components.
- Implemented dynamic blog post routing with generateStaticParams and BlogPost component.
- Created BlogLayout for consistent blog page structure.
- Added initial blog post in MDX format.
- Developed BlogList component to display a list of blog posts.
- Introduced blog utility functions to read and parse MDX files.
2025-11-20 00:17:59 +09:00

21 lines
440 B
TypeScript

import type { NextConfig } from "next";
import createMDX from '@next/mdx';
const path = require('path')
const withMDX = createMDX({
options: {
jsx: true,
jsxImportSource: '@mdx-js/react',
},
})
const nextConfig: NextConfig = {
pageExtensions: ['ts', 'tsx', 'mdx'],
allowedDevOrigins: ['imnyang.dev'],
turbopack: {
root: path.join(__dirname, '.'),
},
output: 'standalone',
};
export default withMDX(nextConfig);