From 62bd7a12f5d183c4e5be0f7b1bdc2e96862ab8bc Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 29 May 2026 17:35:28 +0330 Subject: [PATCH] Build Next.js apps with Webpack instead of Turbopack Next 16 defaults `next build` to Turbopack, which requires native SWC bindings unavailable for Alpine musl from our npm mirror (only the WASM fallback loads). Pass --webpack so the build uses the WASM SWC fallback and succeeds inside the Docker images. Co-Authored-By: Claude Sonnet 4.6 --- web/admin/package.json | 2 +- web/dashboard/package.json | 2 +- web/koja/package.json | 2 +- web/website/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/admin/package.json b/web/admin/package.json index 45f3c1e..42feeeb 100644 --- a/web/admin/package.json +++ b/web/admin/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev -p 3102", - "build": "next build", + "build": "next build --webpack", "start": "next start -p 3102", "lint": "next lint", "typecheck": "tsc --noEmit" diff --git a/web/dashboard/package.json b/web/dashboard/package.json index f228879..6b403e0 100644 --- a/web/dashboard/package.json +++ b/web/dashboard/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build --webpack", "start": "next start", "lint": "next lint", "typecheck": "tsc --noEmit -p tsconfig.typecheck.json", diff --git a/web/koja/package.json b/web/koja/package.json index 62c6cd4..9bebed4 100644 --- a/web/koja/package.json +++ b/web/koja/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build --webpack", "start": "next start", "lint": "next lint", "cap:sync": "cap sync android", diff --git a/web/website/package.json b/web/website/package.json index 5120889..be048ec 100644 --- a/web/website/package.json +++ b/web/website/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev -p 3010", - "build": "next build", + "build": "next build --webpack", "start": "next start -p 3010", "lint": "next lint" },