-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnext.config.js
33 lines (31 loc) · 974 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
/* 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' },
'/resume': { page: '/resume' },
'/volunteer': { page: '/volunteer' },
'/challenge': { page: '/challenge' },
'/dashboard': { page: '/dashboard' }
};
}
});
};