-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
38 lines (37 loc) · 984 Bytes
/
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
const withPlugins = require("next-compose-plugins");
const optimizedImages = require("next-optimized-images");
module.exports = withPlugins([
[optimizedImages, {
handleImages: ["jpeg", "png", "svg", "webp", "gif", "ico"],
optimizeImagesInDev: true,
}],
], {
webpack: (config) => {
config.resolve.fallback = { fs: false, path: false };
return config;
},
async redirects() {
return [
{
source: "/blog/graviton2_changes/graviton2_changes",
destination: "/blog/2_graviton2_changes",
permanent: true,
},
{
source: "/blog/blog/graviton_remake/remake/",
destination: "/blog/1_graviton_remake",
permanent: true,
},
{
source: "/blog/blog/website_revamp/website_revamp/",
destination: "/blog/0_website_revamp",
permanent: true,
},
{
source: "/docs",
destination: "/book/index.html",
permanent: true,
},
];
},
});