forked from shu8/cap-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
47 lines (46 loc) · 1.36 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
async rewrites() {
return [
{ source: "/feed", destination: "/api/alerts" },
{ source: "/feed/alertingAuthorities", destination: "/api/alerts" },
{ source: "/feed/:id", destination: "/api/alerts/:id" },
{
source: "/feed/alertingAuthorities/:id",
destination: "/api/alerts/alertingAuthorities/:id",
},
{
source: "/feed/alertingAuthorities/:id/:language/rss.xml",
destination: "/api/alerts/alertingAuthorities/:id/:language/rss.xml",
},
{
source: "/feed/alertingAuthorities/:id/:language",
destination: "/api/alerts/alertingAuthorities/:id/:language/rss.xml",
},
{ source: "/login", destination: "/auth/login" },
{ source: "/register", destination: "/auth/register" },
{
source: "/api/webauthn/authenticate",
destination: "/api/auth/webauthn/authenticate",
},
{
source: "/api/webauthn/register",
destination: "/api/auth/webauthn/register",
},
{
source: "/geojson-regions",
destination: "/api/geojson",
},
];
},
typescript: {
ignoreBuildErrors: true,
},
i18n: {
locales: ["en", "fr", "es"],
defaultLocale: "en",
},
images: { minimumCacheTTL: 60 },
};
module.exports = nextConfig;