-
Notifications
You must be signed in to change notification settings - Fork 108
/
next.config.js
53 lines (50 loc) · 1.27 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
49
50
51
52
53
const { withContentlayer } = require("next-contentlayer")
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
modularizeImports: {
"@heroicons/react/24/outline": {
transform: "@heroicons/react/24/outline/{{member}}",
},
"@heroicons/react/24/solid": {
transform: "@heroicons/react/24/solid/{{member}}",
},
"@heroicons/react/20/solid": {
transform: "@heroicons/react/20/solid/{{member}}",
},
},
images: {
// allow next/image to serve remote images from safelisted domains
remotePatterns: [
{
protocol: "https",
hostname: "res.cloudinary.com",
pathname: "/delba/**",
},
{ hostname: "api.microlink.io" },
{ hostname: "pbs.twimg.com" },
],
},
async redirects() {
return [
{
source: "/interactive-playgrounds",
destination: "/blog/interactive-playgrounds",
permanent: true,
},
{
source: "/uni",
destination: "/unicode",
permanent: true,
},
// changed slugs
{
source: "/blog/shimmer-loading-animation-with-tailwind-css",
destination: "/blog/animated-loading-skeletons-with-tailwind",
permanent: true,
},
]
},
}
module.exports = withContentlayer(nextConfig)