-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
46 lines (44 loc) · 1.06 KB
/
next.config.js
File metadata and controls
46 lines (44 loc) · 1.06 KB
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
// const withImages = require("next-images");
const withReactSvg = require("next-react-svg");
const path = require("path");
module.exports = withReactSvg({
include: path.resolve(__dirname, "public/icons"),
transpilePackages: [
"react-syntax-highlighter",
"swagger-client",
"swagger-ui-react",
],
env: {
appBaseUrl: process.env.APP_BASE_URL,
apiBaseUrl: process.env.API_BASE_URL,
lyketPublicApiKey: process.env.LYKET_PUBLIC_API_KEY,
lyketResetApiKey: process.env.LYKET_RESET_API_KEY,
},
async redirects() {
return [
{
source: "/blog/posts/react-clap-button",
destination: "/blog/posts/clap-button",
permanent: true,
},
{
source: "/blog/posts/like-clap-button-on-worpress",
destination: "/blog/posts/wordpress-like-button",
permanent: true,
},
{
source: "/docs/widget",
destination: "/docs/html",
permanent: true,
},
];
},
webpack(config, _options) {
config.resolve.alias = {
...config.resolve.alias,
// your aliases
react: path.resolve("./node_modules/react"),
};
return config;
},
});