diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:38:37 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:38:37 +0100 |
| commit | ef7912256cb4765d553b002c24b9752c2d5096ac (patch) | |
| tree | 59b574dbda693dc5f1b2605272a6eff3b23802f2 /next.config.js | |
| parent | fe5d74a864ddd1429b0753a3984c45b2392176d2 (diff) | |
| parent | 0bb6411ee9fce02c2e5680f2be5740a1bbb508ad (diff) | |
feat: use mdx for pages
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); |
