forked from keystonejs/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
29 lines (28 loc) · 894 Bytes
/
next.config.js
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
const withPreconstruct = require('@preconstruct/next');
const withPlugins = require('next-compose-plugins');
const withImages = require('next-images');
const mdxHints = require('remark-hint');
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [mdxHints],
},
});
module.exports = withPlugins([
withPreconstruct,
withImages,
[withMDX, { pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'] }],
nextConfig => {
nextConfig.env = {
siteUrl: 'https://next.keystonejs.com',
};
nextConfig.typescript = {
...nextConfig.typescript,
// we run TS elsewhere, Next runs against a different TS config which it insists on existing
// this is easier than making this the local TS config correct
// + type checking slows down vercel deploys
ignoreBuildErrors: true,
};
return nextConfig;
},
]);