Convert to module

This allows to use `import/export` syntax
This commit is contained in:
Marcus Blättermann 2022-11-10 03:54:16 +01:00
parent 863d0f0d44
commit b861b1f6ce
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -1,4 +1,6 @@
const withMDX = require('@next/mdx')({
import MDX from '@next/mdx'
const withMDX = MDX({
extension: /\.mdx?$/,
options: {
providerImportSource: '@mdx-js/react',
@ -15,4 +17,4 @@ const nextConfig = withMDX({
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
})
module.exports = nextConfig
export default nextConfig