QLFW-67: меньше памяти при сборке (раннер убивал build, код 137)
All checks were successful
All checks were successful
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cf1c78b0ae
commit
f737d76993
@ -3,6 +3,8 @@ import { withPayload } from '@payloadcms/next/withPayload'
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
poweredByHeader: false,
|
poweredByHeader: false,
|
||||||
|
// Сборка на слабом раннере упиралась в память (код 137): меньше потоков и экономия памяти webpack.
|
||||||
|
experimental: { webpackMemoryOptimizations: true, cpus: 1, workerThreads: false },
|
||||||
async redirects() {
|
async redirects() {
|
||||||
return [{ source: '/', destination: '/ru', permanent: false }]
|
return [{ source: '/', destination: '/ru', permanent: false }]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user