qazaq-legacy-foundation-web/next.config.mjs
Peppa f737d76993
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 3с
peppa/test test: success за 2с
peppa/build build: success за 49с
ci / checks (pull_request) Successful in 1m25s
deploy / deploy (pull_request) Successful in 3m6s
QLFW-67: меньше памяти при сборке (раннер убивал build, код 137)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:40:05 +05:00

14 lines
539 B
JavaScript

import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: false,
// Сборка на слабом раннере упиралась в память (код 137): меньше потоков и экономия памяти webpack.
experimental: { webpackMemoryOptimizations: true, cpus: 1, workerThreads: false },
async redirects() {
return [{ source: '/', destination: '/ru', permanent: false }]
},
}
export default withPayload(nextConfig)