-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
43 lines (43 loc) · 1.11 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
// eslint-disable-next-line
const withMDX = require("@next/mdx")(/* { extension: /\.(md|mdx)$/,} */);
// eslint-disable-next-line
module.exports = withMDX({
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
reactStrictMode: true,
// i18n
i18n: {
locales: ["de", "fr", "it"],
defaultLocale: "de",
localeDetection: true,
},
// Next 10 image conf: https://nextjs.org/docs/basic-features/image-optimization
images: {
dangerouslyAllowSVG: true, // not a security risk, these are not user-generated
deviceSizes: [400, 600, 1200, 2000],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
redirects() {
return [
{
source: "/abstimmung",
destination: "/abstimmen",
permanent: true,
},
{
source: "/uptime",
destination: "https://updown.io/p9am",
permanent: true,
},
{
source: "/jouelapolitique",
destination: "/fr/spielpolitik",
permanent: true,
},
{
source: "/giocaallapolitica",
destination: "/it/spielpolitik",
permanent: true,
},
];
},
});