Files
website/next.config.mjs
T

53 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-09-09 22:30:53 -04:00
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'],
2023-09-10 12:46:17 -04:00
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,
},
2023-10-03 03:54:16 -04:00
{
source: '/telegram',
destination: 'https://t.me/prnk28',
permanent: true,
}
2023-09-10 12:46:17 -04:00
]
}
2023-09-09 22:30:53 -04:00
}
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypePrism],
},
})
export default withMDX(nextConfig)