2018-07-09 07:59:57 +00:00
|
|
|
const withSass = require('@zeit/next-sass');
|
|
|
|
|
|
|
|
const dev = process && process.env && process.env.NODE_ENV === 'development';
|
2018-07-23 10:02:23 +00:00
|
|
|
const subDirPath = dev ? '' : '/ETHReport';
|
2018-07-09 07:59:57 +00:00
|
|
|
|
2018-06-27 13:06:10 +00:00
|
|
|
module.exports =
|
|
|
|
withSass({
|
2018-07-11 13:47:26 +00:00
|
|
|
assetPrefix: subDirPath,
|
2018-06-27 13:06:10 +00:00
|
|
|
exportPathMap: function(defaultPathMap) {
|
|
|
|
return {
|
|
|
|
'/': { page: '/' }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2018-07-11 13:47:26 +00:00
|
|
|
|
|
|
|
module.exports.publicRuntimeConfig = { // Will be available on both server and client
|
|
|
|
subDirPath: subDirPath
|
|
|
|
};
|