19 lines
451 B
JavaScript
19 lines
451 B
JavaScript
const withSass = require('@zeit/next-sass');
|
|
|
|
const dev = process && process.env && process.env.NODE_ENV === 'development';
|
|
const subDirPath = dev ? '' : '/ETHReport';
|
|
|
|
module.exports =
|
|
withSass({
|
|
assetPrefix: subDirPath,
|
|
exportPathMap: function(defaultPathMap) {
|
|
return {
|
|
'/': { page: '/' }
|
|
}
|
|
}
|
|
});
|
|
|
|
module.exports.publicRuntimeConfig = { // Will be available on both server and client
|
|
subDirPath: subDirPath
|
|
};
|