Skip to content

Commit

Permalink
feat: mdx support
Browse files Browse the repository at this point in the history
  • Loading branch information
Esinko committed Jun 30, 2024
1 parent 4f32f1a commit 28ad6f9
Show file tree
Hide file tree
Showing 5 changed files with 12,345 additions and 9,188 deletions.
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
const withMDX = require('@next/mdx')()

// The lines API_SERVER_DEV and URL_DEV are the most significant to you
const API_SERVER_DEV = `http://localhost:8080`
Expand Down Expand Up @@ -35,6 +36,8 @@ module.exports = (phase) => ({
compiler: {
styledComponents: true
},
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
...withMDX({}),
async redirects() {
return [
{ "source": "/.well-known/webfinger", "destination": "https://mastodon.testausserveri.fi/.well-known/webfinger", permanent: true },
Expand All @@ -47,4 +50,3 @@ module.exports = (phase) => ({
];
},
})

Loading

0 comments on commit 28ad6f9

Please sign in to comment.