ETHReport/next.config.js

19 lines
474 B
JavaScript
Raw Normal View History

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