-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
63 lines (59 loc) · 1.23 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
const createNextIntlPlugin = require('next-intl/plugin');
const withNextIntl = createNextIntlPlugin();
const nextConfig = withNextIntl({
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.schaechinger.com',
port: '',
pathname: '/**',
},
],
},
skipTrailingSlashRedirect: false,
output: 'standalone',
async redirects() {
return [
// pages
{
source: '/kontakt',
destination: '/contact',
permanent: true,
},
{
source: '/lebenslauf',
destination: '/resume',
permanent: true,
},
{
source: '/projekte',
destination: '/projects',
permanent: true,
},
{
source: '/ueber-mich',
destination: '/about',
permanent: true,
},
// projects
{
source: '/transportkit',
destination: '/projects/transportkit',
permanent: true,
},
// legal
{
source: '/datenschutz',
destination: '/privacy',
permanent: true,
},
{
source: '/impressum',
destination: '/imprint',
permanent: true,
},
];
},
});
module.exports = nextConfig;