-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
58 lines (56 loc) · 1.5 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* eslint-disable @typescript-eslint/no-var-requires */
// eslint-disable-next-line function-paren-newline
const withMarkdoc = require('@markdoc/next.js')(
/* config: https://markdoc.io/docs/nextjs#options */ {
schemaPath: './src/markdoc',
}
)
module.exports = () => {
const plugins = [withMarkdoc]
return plugins.reduce((acc, next) => next(acc), {
transpilePackages: [
'@pluralsh/design-system',
'honorable',
'honorable-theme-default',
'honorable-recipe-mapper',
],
reactStrictMode: false,
compiler: {
// https://nextjs.org/docs/advanced-features/compiler#styled-components
styledComponents: {
ssr: true,
displayName: true,
},
emotion: true,
},
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US',
},
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdoc'],
async redirects() {
return [
{
source: '/hiring-senior-account-executive',
destination: '/careers/hire/senior-account-executive',
permanent: true,
},
{
source: '/plural-deployments-early-access',
destination: '/kubernetes-fleet-management',
permanent: true,
},
{
source: '/continuous-deployment',
destination: '/kubernetes-fleet-management',
permanent: true,
},
{
source: '/demo-login',
destination: '/contact-sales',
permanent: true,
},
]
},
})
}