-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
34 lines (33 loc) · 789 Bytes
/
Copy pathnext.config.js
File metadata and controls
34 lines (33 loc) · 789 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
33
34
// Configuração para GitHub Pages
module.exports = {
reactStrictMode: true,
trailingSlash: true,
images: {
unoptimized: true,
domains: [
'i.scdn.co',
'pbs.twimg.com',
'cdn.discordapp.com',
'avatars.githubusercontent.com',
'github.com',
's3.us-west-2.amazonaws.com',
'via.placeholder.com',
'images.unsplash.com',
'dwgyu36up6iuz.cloudfront.net',
'cdn.hashnode.com',
'res.craft.do',
'res.cloudinary.com',
],
},
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
eslint: {
dirs: ['pages', 'components', 'lib', 'layouts', 'scripts'],
},
webpack: (config, { dev, isServer }) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
}