mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 22:47:15 +01:00
30 lines
677 B
JavaScript
30 lines
677 B
JavaScript
import { withAxiom } from 'next-axiom'
|
|
import createMDX from '@next/mdx'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
swcMinify: true,
|
|
// Configure `pageExtensions`` to include MDX files
|
|
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
|
|
// Optionally, add any other Next.js config below
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/admin',
|
|
destination: '/nope',
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
const withMDX = createMDX({
|
|
// Add markdown plugins here, as desired
|
|
options: {
|
|
remarkPlugins: [],
|
|
rehypePlugins: [],
|
|
},
|
|
})
|
|
|
|
// Merge MDX config with Next.js config
|
|
export default withMDX(nextConfig) |