2018-07-24 09:24:40 +00:00
|
|
|
// const withCSS = require('@zeit/next-css')
|
2018-06-25 21:06:46 +00:00
|
|
|
const webpack = require('webpack')
|
2018-07-24 09:24:40 +00:00
|
|
|
// module.exports = withCSS({
|
|
|
|
module.exports = {
|
2018-02-05 16:18:31 +00:00
|
|
|
onDemandEntries: {
|
|
|
|
// Make sure entries are not getting disposed.
|
|
|
|
maxInactiveAge: 1000 * 60 * 60
|
|
|
|
},
|
2018-02-26 11:03:27 +00:00
|
|
|
cssModules: true,
|
2018-02-27 16:50:14 +00:00
|
|
|
serverRuntimeConfig: {
|
|
|
|
mySecret: 'secret'
|
|
|
|
},
|
|
|
|
publicRuntimeConfig: {
|
|
|
|
staticFolder: '/static'
|
2018-06-25 21:06:46 +00:00
|
|
|
},
|
|
|
|
webpack (config, {buildId}) {
|
|
|
|
config.plugins.push(
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId)
|
|
|
|
})
|
|
|
|
)
|
|
|
|
|
|
|
|
return config
|
2018-02-26 11:03:27 +00:00
|
|
|
}
|
2018-07-24 09:24:40 +00:00
|
|
|
// })
|
|
|
|
}
|