-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (32 loc) · 994 Bytes
/
next.config.js
File metadata and controls
32 lines (32 loc) · 994 Bytes
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
module.exports = {
env: {
ANALYTICS_ID: process.env.ANALYTICS_ID,
},
async rewrites() {
return [
{ source: '/', destination: '/' },
{ source: '/conocenos', destination: '/about' },
{ source: '/codigo-de-conducta', destination: '/coc' },
{ source: '/comunicaciones', destination: '/comuniques' },
{ source: '/comunidades', destination: '/communities' },
{ source: '/conocimiento', destination: '/knowledge' },
{ source: '/encuentros/proximo', destination: '/api/next-encuentros-codear' },
{ source: '/anuario/2020', destination: '/yearbook/2020' },
];
},
async redirects() {
return [
{
source: '/gh/:id',
destination: 'https://github.com/somoscodear/:id',
permanent: false,
},
{
source: '/figma/proyectos-codear-website',
destination: 'https://www.figma.com/file/uwlIFkmub9G8P82ZPCWlMG',
permanent: false,
},
];
},
catchAllRouting: true,
};