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;