diff --git a/next.config.mjs b/next.config.mjs index 7474899..ffd16ba 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -3,6 +3,8 @@ 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 }] }, diff --git a/src/components/BookWhere.tsx b/src/components/BookWhere.tsx index 9483850..b96f74a 100644 --- a/src/components/BookWhere.tsx +++ b/src/components/BookWhere.tsx @@ -20,7 +20,7 @@ export function BookWhere({ t }: { t: Dict['book']; tbc?: string }) {
{buy.storesIntro}
{buy.note}
diff --git a/src/components/book-where.test.ts b/src/components/book-where.test.ts index bfe5126..308816d 100644 --- a/src/components/book-where.test.ts +++ b/src/components/book-where.test.ts @@ -16,16 +16,17 @@ describe('Сценарий: где купить книгу', () => { expect(html).toContain('можно приобрести онлайн на платформах:') expect(html).toContain('href="https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988"') expect(html).toContain('href="https://www.flip.kz/catalog?prod=6364653') - expect(html).toContain('href="https://erudit.kz/"') - expect(html).toContain('Книжный мир') + expect(html).toContain('Наличие и стоимость книги уточняйте непосредственно у продавцов.
') }) it.each(['kk', 'en'] as const)('язык %s: те же магазины, без пометок', (l) => { const html = render(l) expect(html).toContain('href="https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988"') expect(html).toContain('href="https://www.flip.kz/catalog?prod=6364653') - expect(html).toContain('Эрудит') - expect(html).toContain('Книжный мир') + expect(html).toContain('