forked from LAION-AI/Open-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
63 lines (60 loc) · 1.34 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 { i18n } = require("./next-i18next.config");
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**.discordapp.com",
},
{
protocol: "https",
hostname: "api.dicebear.com",
},
],
},
experimental: {
/* Disabling this for now only because it causes a warning in the console that cannot be silenced for eslint
If this can be resolved, we should re-enable this.
*/
// scrollRestoration: true,
},
i18n,
eslint: {
ignoreDuringBuilds: true,
},
async redirects() {
if (process.env.MAINTENANCE_MODE !== "true") {
return [];
}
return [
{
source: "/",
destination: "/brb",
permanent: false,
},
{
source: "/dashboard",
destination: "/brb",
permanent: false,
},
{
source: `/tasks/:task`,
destination: "/brb",
permanent: false,
},
{
source: "/leaderboard",
destination: "/brb",
permanent: false,
},
];
},
};
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
openAnalyzer: true,
});
module.exports = withBundleAnalyzer(nextConfig);