-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathnext.config.ts
More file actions
27 lines (24 loc) · 816 Bytes
/
next.config.ts
File metadata and controls
27 lines (24 loc) · 816 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
import type { NextConfig } from "next"
import { withContentlayer } from "next-contentlayer"
import withBundleAnalyzer from "@next/bundle-analyzer"
const nextConfig: NextConfig = {
eslint: {
/**
* Now eslint requires typecheck so we have to run build before executing lint
* These check are performed via `.github/workflows/ci.yml` action
*
* @see https://github.com/react-hook-form/documentation/pull/1107
*/
ignoreDuringBuilds: true,
},
typescript: {
/** @see `eslint.ignoreDuringBuilds` comment */
ignoreBuildErrors: true,
},
reactStrictMode: true,
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
}
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
})
export default bundleAnalyzer(withContentlayer(nextConfig))