diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-24 13:34:56 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:09:32 +0100 |
| commit | e5e9c5808c53c297aa8bba55c963c6ccc4de6785 (patch) | |
| tree | b7c813673e81ac9366c97337ac55244eef48339d /next.config.js | |
| parent | fe5d74a864ddd1429b0753a3984c45b2392176d2 (diff) | |
build: configure next to use mdx files
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 12 |
1 files changed, 11 insertions, 1 deletions
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); |
