From e5e9c5808c53c297aa8bba55c963c6ccc4de6785 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 24 Dec 2021 13:34:56 +0100 Subject: build: configure next to use mdx files --- next.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index 8492d0d..55c852a 100644 --- a/next.config.js +++ b/next.config.js @@ -4,7 +4,7 @@ const { locales } = require('./lingui.config'); const backendDomain = process.env.BACKEND_URL.split('//')[1]; /** @type {import('next').NextConfig} */ -module.exports = { +const nextConfig = { i18n: { locales, defaultLocale: 'fr', @@ -55,3 +55,13 @@ module.exports = { return config; }, }; + +const withMDX = require('@next/mdx')({ + extension: /\.mdx?$/, + options: { + remarkPlugins: [], + rehypePlugins: [], + }, +}); + +module.exports = withMDX(nextConfig); -- cgit v1.2.3