mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
* Set CPU limit for Next build * It looks like it worked, re-running to be sure * That worked too, one more time... * Revert "Set CPU limit for Next build" to make sure this is the fix This reverts commitd8274996f0
. * Un-revert "Set CPU limit for Next build" This reverts commitd7e06c8ad8
.
23 lines
509 B
JavaScript
23 lines
509 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
module.exports = {
|
|
webpack: config => {
|
|
config.module.rules.push({
|
|
test: /\.js$/,
|
|
enforce: 'pre',
|
|
exclude: [/node_modules[\\\/]@next/, /node_modules[\\\/]next/],
|
|
use: [
|
|
{
|
|
loader: require.resolve('source-map-loader'),
|
|
},
|
|
],
|
|
})
|
|
return config
|
|
},
|
|
// https://answers.netlify.com/t/basic-nextjs-website-failing-to-build-with-exit-code-129/120273/2
|
|
experimental: {
|
|
cpus: 1,
|
|
},
|
|
}
|