-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
34 lines (33 loc) · 878 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
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
});
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'mdx'],
webpack: (config) => {
config.module.rules.push({
test: /react-spring/,
sideEffects: true,
});
return config;
},
async redirects() {
return [
{
source: '/blog/2022-01-17-deploying-rust-on-aws-using-flightcontrol',
destination: '/blog/2023-01-17-deploying-rust-on-aws-using-flightcontrol',
permanent: true,
},
{
source: '/',
has: [
{
type: 'host',
value: 'ddd23.alexandervarwijk.com',
},
],
destination: 'https://www.alexandervarwijk.com/talks/2023-07-19 - Drupal Dev Days Vienna - Keeping Drupal Relevant for the Modern Web/index.html',
permanent: true,
}
];
},
});