forked from meilisearch/landing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
40 lines (40 loc) · 886 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
34
35
36
37
38
39
40
module.exports = {
reactStrictMode: true,
compiler: {
styledComponents: true,
},
poweredByHeader: false,
webpack: config => {
// Unset client-side javascript that only works server-side
config.resolve.fallback = { fs: false, module: false }
config.module.rules.push({
test: /\.mdx$/,
use: 'raw-loader',
})
return config
},
images: {
domains: ['pbs.twimg.com', 'image.tmdb.org'],
},
async redirects() {
return [
{
source: '/privacy',
destination: '/privacy-policy',
permanent: true,
},
{
source: '/blog',
destination: 'https://blog.meilisearch.com',
permanent: true,
basePath: false,
},
{
source: '/docs',
destination: 'https://docs.meilisearch.com',
permanent: true,
basePath: false,
},
]
},
}