mirror of
https://github.com/prdlk/website.git
synced 2026-08-02 09:21:41 +00:00
53 lines
1.1 KiB
JavaScript
53 lines
1.1 KiB
JavaScript
import rehypePrism from '@mapbox/rehype-prism'
|
|
import nextMDX from '@next/mdx'
|
|
import remarkGfm from 'remark-gfm'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
|
|
redirects: async () => {
|
|
return [
|
|
{
|
|
source: '/twitter',
|
|
destination: 'https://twitter.com/thisisprad',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/github',
|
|
destination: 'https://github.com/prnk28',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/linkedin',
|
|
destination: 'https://www.linkedin.com/in/pradn/',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/medium',
|
|
destination: 'https://medium.com/@prnk28',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/cal',
|
|
destination: 'https://cal.com/pradn',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/telegram',
|
|
destination: 'https://t.me/prnk28',
|
|
permanent: true,
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
const withMDX = nextMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [remarkGfm],
|
|
rehypePlugins: [rehypePrism],
|
|
},
|
|
})
|
|
|
|
export default withMDX(nextConfig)
|