/
next.config.js
50 lines (48 loc) · 1.06 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
module.exports = withBundleAnalyzer({
nextConfig,
i18n: {
locales: ["en"],
defaultLocale: "en",
},
async redirects() {
return [
{
source: "/html/careers.html",
destination: "/careers",
statusCode: 301,
},
{
source: "/html/contribute.html",
destination: "/contribute",
statusCode: 301,
},
{
source: "/html/careers/frontend.html",
destination: "/careers/frontend",
statusCode: 301,
},
{
source: "/html/careers/backend.html",
destination: "/careers/backend",
statusCode: 301,
},
{
source: "/frontend",
destination: "/careers/frontend",
statusCode: 301,
},
{
source: "/backend",
destination: "/careers/backend",
statusCode: 301,
},
];
},
});