forked from NearDeFi/polygon-bos-gateway__deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
48 lines (47 loc) · 1.22 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
/** @type {import('next').NextConfig} */
const nextConfig = {
compiler: { styledComponents: true },
reactStrictMode: true,
redirects: async () => {
return [
{
source: '/stackoverflow',
destination:
'/near/widget/NearOrg.HomePage?utm_source=stack&utm_medium=podcast&utm_campaign=stackoverflow_evergreen_bos_awareness',
permanent: false,
},
{
source: '/consensus',
destination: 'https://nearconsensus2023.splashthat.com/',
permanent: false,
},
{
source: '/ethcc',
destination: 'https://www.eventbrite.com/e/near-ethcc-tickets-655229297467',
permanent: false,
},
{
source: '/pitch',
destination: 'https://nearpitchfestconsensus.splashthat.com/',
permanent: false,
},
{
source: '/developer-governance',
destination: 'https://neardevgov.org/',
permanent: false,
},
{
source: '/edit/:path*',
destination: '/sandbox/:path*',
permanent: true,
},
];
},
rewrites: async () => [
{
source: '/api/segment',
destination: 'https://api.segment.io/v1/batch',
},
],
};
module.exports = nextConfig;