From b861b1f6ce93a4f51dfdd186b0a162d92dbf2c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Thu, 10 Nov 2022 03:54:16 +0100 Subject: [PATCH] Convert to module This allows to use `import/export` syntax --- website/{next.config.js => next.config.mjs} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename website/{next.config.js => next.config.mjs} (81%) diff --git a/website/next.config.js b/website/next.config.mjs similarity index 81% rename from website/next.config.js rename to website/next.config.mjs index bd738d33f..06adac6b5 100644 --- a/website/next.config.js +++ b/website/next.config.mjs @@ -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