forked from JMPerez/spotify-dedup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
27 lines (24 loc) · 752 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
const withSourceMaps = require('@zeit/next-source-maps');
const repoNameURIPrefix = process.env.NODE_ENV === 'production' ? '' : '';
const config = {
assetPrefix: repoNameURIPrefix,
env: {
linkPrefix: repoNameURIPrefix,
},
exportPathMap: () => ({
'/': { page: '/' },
'/de/index.html': { page: '/de' },
'/es/index.html': { page: '/es' },
'/fr/index.html': { page: '/fr' },
'/it/index.html': { page: '/it' },
'/nl/index.html': { page: '/nl' },
'/pt/index.html': { page: '/pt' },
'/pl/index.html': { page: '/pl' },
'/sv/index.html': { page: '/sv' },
'/callback/index.html': { page: '/callback' },
}),
webpack(config, options) {
return config;
},
};
module.exports = withSourceMaps(config);