-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathnext.config.js
More file actions
40 lines (37 loc) · 1.07 KB
/
next.config.js
File metadata and controls
40 lines (37 loc) · 1.07 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
const withMDX = require('@next/mdx')({
extension: /\.mdx$/,
options: {
remarkPlugins: [],
rehypePlugins: [],
},
})
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
output: 'export',
reactStrictMode: true,
// By default, Next.js doesn't create index.html files in directories.
// Instead, it creates an HTML file named after the directory, which also
// works fine in browsers.
//
// docs/
// ├── getting-started.html
// └── getting-started/
//
// We want to keep the old behavior, that originates from when we used Hugo.
// Relying on index.html makes it a bit easier to use tools such as htmltest.
// With the option "trailingSlash: true", we get the following layout:
//
// docs/
// └── getting-started/
// └── index.html
//
// More documentation can be found here:
// https://nextjs.org/docs/upgrading#next-export-no-longer-exports-pages-as-indexhtml
trailingSlash: true,
eslint: {
ignoreDuringBuilds: true
},
images: {
unoptimized: true
}
})