-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathnext.config.js
More file actions
48 lines (44 loc) · 1.24 KB
/
Copy pathnext.config.js
File metadata and controls
48 lines (44 loc) · 1.24 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
41
42
43
44
45
46
47
48
const createMDX = require("@next/mdx");
// MDX is compiled via the MDX loader; TSX still goes through root `babel.config.js`. See babel.config.jsx-source.example.js for a `next/babel`-only variant.
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
pathname: "/**",
},
],
},
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
async redirects() {
return [
{
source: "/how-arrays-work",
destination: "https://nan-archive.vercel.app/how-arrays-work",
permanent: false,
},
{
source: "/debugger",
destination: "https://nan-archive.vercel.app/debugger",
permanent: false,
},
{
source: "/sliding-window",
destination: "https://nan-archive.vercel.app/sliding-window",
permanent: false,
},
];
},
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
}
};
const withMDX = createMDX({});
module.exports = withMDX(nextConfig);