Attempt at rewriting .md file in Next router
This commit is contained in:
parent
9a4a90668d
commit
4a7eecef49
|
|
@ -0,0 +1 @@
|
||||||
|
.obsidian
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
module.exports = {
|
||||||
|
async rewrites() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: '/concepts/:page(.md)',
|
||||||
|
destination: '/concepts/:page',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,7 @@ import { ThemeProvider } from 'next-themes'
|
||||||
|
|
||||||
import '../styles/global.css'
|
import '../styles/global.css'
|
||||||
import siteConfig from '../config/siteConfig.js'
|
import siteConfig from '../config/siteConfig.js'
|
||||||
|
import nextConfig from '../config/next.config.js'
|
||||||
import Layout from '../components/Layout'
|
import Layout from '../components/Layout'
|
||||||
import MdxPage from '../components/MDX'
|
import MdxPage from '../components/MDX'
|
||||||
import * as gtag from '../lib/gtag'
|
import * as gtag from '../lib/gtag'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue