-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
41 lines (38 loc) · 1005 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
i18n: {
locales: ["en", "sk"],
defaultLocale: "en",
},
async headers() {
const headers = [];
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "preview") {
headers.push({
headers: [
{
key: "X-Robots-Tag",
value: "noindex",
},
],
source: "/:path*",
});
}
return headers;
},
async redirects() {
return [
{
source: "/cv-en",
destination: "/Ján%20Miškovič%20-%20Resume.pdf",
permanent: true,
},
{
source: "/cv-sk",
destination: "/Ján%20Miškovič%20-%20Životopis.pdf",
permanent: true,
},
];
},
};
module.exports = nextConfig;