-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathnext.config.js
42 lines (40 loc) · 1.01 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
compiler: {
styledComponents: true,
},
redirects: async () => [
{
source: "/publicbeta",
destination: "/",
permanent: false,
},
{
source: "/beta",
destination: "/",
permanent: false,
},
{
// Temporary
source: "/about",
destination:
"https://github.com/revoltchat/legal/blob/master/About.md#communication-is-critical",
permanent: false,
},
],
async rewrites() {
return [
{
source: "/js/p.js",
destination:
"https://plausible.insrt.uk/js/script.outbound-links.js",
},
{
source: "/p",
destination: "https://plausible.insrt.uk/api/event",
},
];
},
};
module.exports = nextConfig;