forked from ncihtan/htan-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
29 lines (29 loc) · 921 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
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,
},
];
},
});