-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
64 lines (55 loc) · 1.59 KB
/
Copy pathnext.config.js
File metadata and controls
64 lines (55 loc) · 1.59 KB
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
const redirects = require('./lib/redirect/redirect');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cms.b-side.ms',
pathname: '**',
},
{
protocol: 'http',
hostname: 'localhost',
pathname: '**',
},
],
minimumCacheTTL: 60 * 60 * 24,
formats: ['image/webp', 'image/avif'],
},
i18n: {
locales: ['de', 'en'],
defaultLocale: 'de',
localeDetection: false,
},
staticPageGenerationTimeout: 60 * 3 * 10,
// Needed to build the project as a standalone app inside the Docker image.
output: 'standalone',
experimental: {
scrollRestoration: true,
},
redirects,
async rewrites() {
return {
beforeFiles: [
{
source: '/kollektiv/:slug',
destination: '/kreise/:slug',
},
{
source: '/kultur/:slug((?!impressum|spenden|hansawerkstatt/spenden|festival/spenden|hansawerkstatt/alles-auf-neu).*)',
destination: '/kreise/:slug',
},
{
source: '/quartier/:slug((?!unterstuetzen).*)',
destination: '/kreise/:slug',
},
],
afterFiles: [],
fallback: [],
};
},
};
module.exports = nextConfig;