forked from sourcegraph/handbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
28 lines (25 loc) · 878 Bytes
/
next.config.mjs
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
import redirects from './src/scripts/redirects.mjs'
/** @type {import('next').NextConfig} */
const nextConfig = {
// WARNING: Redirects defined only in next.config.js will NOT work when deployed in Netlify.
// They also need to be added to Netlify's _redirects file.
// Redirects here are only for `pnpm dev`/`pnpm start`.
// See src/scripts/generate-redirects.js
redirects: async () =>
(await redirects()).map(({ source, destination }) => ({
source,
destination,
permanent: false,
})),
generateBuildId: () => 'build',
images: {
domains: ['avatars.githubusercontent.com'],
},
swcMinify: true,
trailingSlash: true,
eslint: {
// We don't rely on linting errors to break to stop the Neltify build
ignoreDuringBuilds: true,
},
}
export default nextConfig