-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnext.config.js
40 lines (40 loc) · 1.26 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
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
});
module.exports = withMDX({
swcMinify: true,
pageExtensions: ['js', 'jsx', 'mdx', 'tsx'],
staticPageGenerationTimeout: 120,
redirects: async () => {
// Note: don't put trailing slash in the redirect URLs
return [
{
source: '/htan-authors',
destination: '/authors',
permanent: true,
},
{
source: '/publications/htapp_mbc_klughammer_2024',
destination:
'/publications/hta1_2024_nature-medicine_johanna-klughammer',
permanent: false,
},
{
source: '/publications/hta8_crc_moorman_2024',
destination: '/publications/hta8_2024_nature_a-r-moorman',
permanent: false,
},
// phase 1 centers
...[...Array(12).keys()].map((i) => ({
source: `/hta${i + 1}`,
destination: `/center/hta${i + 1}`,
permanent: true,
})),
{
source: `/htan-dcc`,
destination: `/center/htan-dcc`,
permanent: true,
},
];
},
});