This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
89 lines (87 loc) · 2.19 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
// appDir: true,
serverComponentsExternalPackages: ['react-bootstrap']
},
staticPageGenerationTimeout: 360,
trailingSlash: true,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
images: {
domains: ['assets.opensanctions.org'],
},
async redirects() {
return [
{
source: '/sponsor/',
destination: '/licensing/#sponsor',
permanent: false,
},
{
source: '/docs/usage/',
destination: '/docs/',
permanent: false,
},
{
source: '/docs/commercial-faq/',
destination: '/docs/commercial/faq/',
permanent: false,
},
{
source: '/docs/api/',
destination: '/api/',
permanent: false,
},
{
source: '/entities/',
destination: '/research/',
permanent: false,
},
{
source: '/blog/',
destination: '/articles/',
permanent: false,
},
{
source: '/recent/:page',
destination: '/datasets/:page',
permanent: false,
},
{
source: '/datasets/offshoreleaks/',
destination: '/datasets/icij_offshoreleaks/',
permanent: false,
},
{
source: '/slack/',
destination: 'https://join.slack.com/t/opensanctions/shared_invite/zt-xwnzvht1-9jPnHUwfCzW_Yw9MAG6vTA',
permanent: false,
},
{
source: '/meeting/',
// destination: 'https://calendly.com/flindenberg/30min',
destination: 'https://meetings-eu1.hubspot.com/douglas-arellanes',
permanent: false,
},
{
source: '/frederik/',
destination: 'https://meetings-eu1.hubspot.com/frederik-richter',
permanent: false,
},
{
source: '/docs/opensource/install/',
destination: 'https://zavod.opensanctions.org/install/',
permanent: false,
},
{
source: '/docs/opensource/crawlers/',
destination: 'https://zavod.opensanctions.org/tutorial/',
permanent: false,
},
]
},
};
module.exports = nextConfig