-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
89 lines (86 loc) · 1.9 KB
/
next.config.mjs
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
config.resolve.alias.canvas = false;
config.resolve.alias.encoding = false;
return config;
},
async redirects() {
return [
{
source: "/resume",
destination: "/docs/resume.pdf",
permanent: true,
},
{
source: "/email",
destination: "mailto:aarab.nishchal@gmail.com",
permanent: true,
},
];
},
async rewrites() {
return [
{
source: "/about",
destination: "/",
},
{
source: "/contact",
destination: "/",
},
{
source: "/projects",
destination: "/",
},
{
source: "/experience",
destination: "/",
},
{
source: "/skills",
destination: "/",
},
{
source: "/github",
destination: "https://www.github.com/aarabii",
},
{
source: "/linkedin",
destination: "https://www.linkedin.com/in/aarab-nishchal",
},
{
source: "/twitter",
destination: "https://www.twitter.com/aarab_ii",
},
{
source: "/instagram",
destination: "https://www.instagram.com/aarab.ii",
},
{
source: "/facebook",
destination: "https://www.facebook.com/zzcwc",
},
{
source: "/telegram",
destination: "https://t.me/aarab_ii",
},
{
source: "/snapchat",
destination: "https://www.snapchat.com/add/aarab.ii",
},
{
source: "/leetcode",
destination: "https://leetcode.com/u/aarabii",
},
];
},
env: {
service_key: process.env.EMAILJS_SERVICE_ID,
template_key: process.env.EMAILJS_TEMPLATE_ID,
user_key: process.env.EMAILJS_PUBLIC_KEY,
},
reactStrictMode: true,
poweredByHeader: false,
};
export default nextConfig;