Attempt at rewriting .md file in Next router

This commit is contained in:
sdiehl 2022-03-12 09:55:56 +00:00
parent 9a4a90668d
commit 4a7eecef49
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.obsidian

View File

@ -0,0 +1,10 @@
module.exports = {
async rewrites() {
return [
{
source: '/concepts/:page(.md)',
destination: '/concepts/:page',
},
]
},
}

View File

@ -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'