-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
35 lines (33 loc) · 995 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
const withLess = require('@zeit/next-less');
const withCSS = require('@zeit/next-css');
const path = require("path");
module.exports = withCSS(withLess({
webpack(config, options) {
config.module.rules.push(
{
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000
}
}
});
return config
},
useFileSystemPublicRoutes: false,
exportPathMap: function(defaultPathMap) {
return {
'/': { page: '/home/home', query: { title: 'home' } },
'/management': { page: '/management/management', query: { title: 'management' } },
'/assignment': { page: '/assignment/assignment', query: { title: 'assignment' } },
'/competition': { page: '/competition/competition', query: { title: 'competition' } }
}
},
generateEtags: false,
distDir: 'build',
generateBuildId: async () => {
return 'my-build-id'
},
pageExtensions: ['jsx', 'js']
}))