-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnext.config.js
33 lines (31 loc) · 1001 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
30
31
32
33
/** @type {import('next').NextConfig} */
const config = {
pageExtensions: ["ts", "tsx", "js", "jsx"],
reactStrictMode: true,
eslint: {
// Replaced by root workspace command
ignoreDuringBuilds: true,
},
redirects: async () => [
{
source: "/add-headers-and-status-to-response-in-route-handlers",
destination:
"https://nextjs.org/docs/app/building-your-application/routing/router-handlers#cors",
permanent: true,
},
{
source: "/request-body-in-route-handlers",
destination:
"https://nextjs.org/docs/app/building-your-application/routing/router-handlers#request-body",
permanent: true,
},
{
source: "/cannot-read-properties-of-null-error-hooks-contexts",
destination:
"https://nextjs.org/docs/getting-started/react-essentials#the-use-client-directive",
permanent: true,
},
],
};
const { withContentlayer } = require("next-contentlayer");
module.exports = withContentlayer(config);