From cc363a790fe497abbbeabddda066872e1a555012 Mon Sep 17 00:00:00 2001 From: sax3l Date: Tue, 29 Sep 2026 13:39:16 +0200 Subject: [PATCH] =?UTF-8?q?fix(build):=20transpilePackages=20f=C3=B6r=20@s?= =?UTF-8?q?iax/*=20=E2=80=94=20Turbopack=20kan=20inte=20konsumera=20r?= =?UTF-8?q?=C3=A5=20src/TS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @siax/ui 0.11.1 exporterar src/index.ts (DES1GN-konventionen); Next/Turbopack kraschade med 'Unknown module type' i node_modules. transpilePackages för samtliga @siax/*-beroenden. pnpm build grön lokalt. --- next.config.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 59ce1f2..301c6a9 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -110,6 +110,9 @@ const securityHeaders = [ /** @type {import('next').NextConfig} */ const nextConfig = { + // @siax/*-paket exporterar rå src/ (TS) enligt DES1GN-konventionen — + // Turbopack måste transpilera dem (ActionGate-piloten, ADR-0001). + transpilePackages: ["@siax/ui", "@siax/contracts", "@siax/config", "@siax/tokens"], // Självhostad drift i SIAX Cloud (Coolify + Traefik) — ersätter Vercel. // // "standalone" får `next build` att packa en fristående Node-server i