-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnext.config.js
36 lines (34 loc) · 1.09 KB
/
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
/* eslint-disable */
const { PHASE_PRODUCTION_SERVER } =
process.env.NODE_ENV === 'development'
? {}
: !process.env.NOW_REGION
? require('next/constants')
: require('next-server/constants');
module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_SERVER) {
return {};
}
const withSass = require('@zeit/next-sass');
return withSass({
cssModules: true,
exportPathMap: function() {
return {
'/': { page: '/' },
//'/speaker': { page: '/speaker' },
//'/events': { page: '/events' },
//'/timeline': { page: '/timeline' },
'/sponsor': { page: '/sponsor' },
'/startup': { page: '/startup' },
'/register': {page: '/register'},
'/symposium': { page: '/symposium' },
'/auth': { page: '/auth' },
//'/register': { page: '/register' },
//'/resume': { page: '/resume' },
//'/volunteer': { page: '/volunteer' },
//'/challenge': { page: '/challenge' },
//'/dashboard': { page: '/dashboard' }
};
}
});
};