1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration/config/next.config.js

27 lines
571 B
JavaScript
Raw Normal View History

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