forked from freee/a11y-training
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
27 lines (25 loc) · 784 Bytes
/
Copy pathnext.config.js
File metadata and controls
27 lines (25 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/** @type {import('next').NextConfig} */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withMDX = require('@next/mdx')({
options: {
// If you use remark-gfm, you'll need to use next.config.mjs
// as the package is ESM only
// https://github.com/remarkjs/remark-gfm#install
remarkPlugins: [],
rehypePlugins: [],
// If you use `MDXProvider`, uncomment the following line.
providerImportSource: '@mdx-js/react',
},
});
const urlPrefix = process.env.URL_PREFIX ? `/${process.env.URL_PREFIX}` : '';
module.exports = withMDX({
output: 'export',
pageExtensions: ['tsx', 'mdx'],
reactStrictMode: true,
assetPrefix: urlPrefix || '/',
basePath: urlPrefix,
trailingSlash: true,
publicRuntimeConfig: {
urlPrefix,
},
});