From 6127a0ac4223d1f333aae0947972d41206f3fa7a Mon Sep 17 00:00:00 2001 From: Khalid Abdi Date: Wed, 15 Jul 2026 02:35:02 +0300 Subject: [PATCH] frontend: build with webpack so Docker images build on arm64 Next 16's default Turbopack build has no native bindings for linux/arm64 in the Alpine image, so `next build` failed in Docker ("Turbopack is not supported on this platform"). Switch the production build to webpack, which Next recommends for this case and which builds on every arch. Co-Authored-By: Claude Opus 4.8 --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index bac0268..29558b1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build --webpack", "start": "next start", "lint": "eslint", "check-locales": "node scripts/check-locales.mjs"