forked from vijayst/nextdemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
42 lines (41 loc) · 1.07 KB
/
next.config.js
File metadata and controls
42 lines (41 loc) · 1.07 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
const withCSS = require('@zeit/next-css');
module.exports = withCSS({
cssModules: true,
exportPathMap: function() {
return {
'/': { page: '/' },
'/services': { page: '/services' },
'/services/react-app': {
page: '/service',
query: {
slug: 'react-app'
}
},
'/services/react-native-app': {
page: '/service',
query: {
slug: 'react-native-app'
}
},
'/services/nextjs-app': {
page: '/service',
query: {
slug: 'nextjs-app'
}
},
'/services/gatsby-app': {
page: '/service',
query: {
slug: 'gatsby-app'
}
}
};
},
webpack: function(config) {
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader'
});
return config;
}
});