From 657cc26d3e7d5bccff104aa8bf00fe0da99a1ac8 Mon Sep 17 00:00:00 2001 From: AR 15 M4 Date: Sun, 22 Mar 2026 18:06:54 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20TypeScript-=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B2=20exportTokens,=20next.config.ts=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20Vercel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - colors/page.tsx: Record вместо Record - next.config.ts: turbopack.root только в development (Vercel conflict fix) Co-Authored-By: Claude Sonnet 4.6 --- apps/web/app/foundation/colors/page.tsx | 2 +- apps/web/next.config.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/web/app/foundation/colors/page.tsx b/apps/web/app/foundation/colors/page.tsx index 0988078..ac89a99 100644 --- a/apps/web/app/foundation/colors/page.tsx +++ b/apps/web/app/foundation/colors/page.tsx @@ -247,7 +247,7 @@ function ContrastRow({ pair }: { pair: typeof CONTRAST_PAIRS[0] }) { /* ─── Экспорт токенов ──────────────────────────────────────────────── */ function exportTokens() { - const tokens: Record> = { colors: {} }; + const tokens: Record> = { colors: {} }; BRAND_COLORS.forEach(c => { const key = c.oracal !== "—" ? `brand-${c.oracal.toLowerCase()}` : "brand-white"; const { r, g, b } = hexToRgb(c.hex); diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 63dc60b..4bb47c5 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -1,10 +1,14 @@ import type { NextConfig } from "next"; import path from "path"; +const isDev = process.env.NODE_ENV === "development"; + const nextConfig: NextConfig = { - turbopack: { - root: path.resolve(__dirname, "../.."), - }, + ...(isDev && { + turbopack: { + root: path.resolve(__dirname, "../.."), + }, + }), }; export default nextConfig;