-
Notifications
You must be signed in to change notification settings - Fork 92
/
next.config.js
41 lines (41 loc) · 1.04 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
module.exports = {
async rewrites() {
return [
{
source: '/sitemap.xml',
destination: '/api/sitemap'
}
];
},
async redirects() {
return [
// portfolio archives
{
source: '/archives/v1',
destination: 'https://wizardly-payne-b3707b.netlify.app/',
permanent: true
},
{
source: '/archives/v2',
destination: 'https://braydoncoyer-2hvriu779-braydon-coyer.vercel.app/',
permanent: true
}
];
},
images: {
domains: [
's3.us-west-2.amazonaws.com', // Images coming from Notion
'via.placeholder.com', // for articles that do not have a cover image
'images.unsplash.com', // For blog posts that use an external cover ima ge
'pbs.twimg.com', // Twitter Profile Picture
'dwgyu36up6iuz.cloudfront.net',
'avatars.githubusercontent.com',
'media.giphy.com',
'cdn.hashnode.com',
'res.craft.do',
'res.cloudinary.com',
'robohash.org',
'iad.microlink.io' // link preview
]
}
};