From b780537b055c43b069199bf3d7af54e496d64b98 Mon Sep 17 00:00:00 2001 From: pehlicd <65170388+pehlicd@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:58:54 +0200 Subject: [PATCH] fix: disable swc and enable babel to fix container image release Signed-off-by: pehlicd <65170388+pehlicd@users.noreply.github.com> --- Dockerfile | 1 + ui/next.config.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0709a40..f155626 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ WORKDIR /app/ui COPY ui /app/ui RUN npm install -g npm@latest && \ + npm install -D @swc/cli @swc/core && \ npm install --force RUN npm run build diff --git a/ui/next.config.js b/ui/next.config.js index 988e5a3..8a9b192 100644 --- a/ui/next.config.js +++ b/ui/next.config.js @@ -2,10 +2,10 @@ const nextConfig = { distDir: 'dist', output: 'export', - swcMinify: false, - experimental: { - forceSwcTransforms: true, - }, + // swcMinify: false, + // experimental: { + // forceSwcTransforms: true, + // }, } module.exports = nextConfig