1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-11 09:43:58 +02:00
Files
slate/site/next.config.js
Joe Anderson ffe3f8c129 Fix Netlify builds for PRs (#5876)
* 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 commit d8274996f0.

* Un-revert "Set CPU limit for Next build"

This reverts commit d7e06c8ad8.
2025-05-24 13:51:00 -07:00

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,
},
}