-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
28 lines (26 loc) · 904 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
// This file is not going through babel transformation.
// So, we write it in vanilla JS
// (But you could use ES2015 features supported by your Node.js version)
const debug = process.env.NODE_ENV !== "production";
module.exports = {
exportPathMap: function () { // /Next-React-Components
return {
"/": { page: "/" }
}
},
assetPrefix: !debug ? 'https://jamiechung.github.io/scotland-covid-dashboard/' : '',
/* webpack: (config, { dev }) => {
// Perform customizations to webpack config
// console.log('webpack');
// console.log(config.module.rules, dev);
// Important: return the modified config
return config
},
webpackDevMiddleware: (config) => {
// Perform customizations to webpack dev middleware config
// console.log('webpackDevMiddleware');
// console.log(config);
// Important: return the modified config
return config
}, */
}