Skip to content

Commit

Permalink
fix: disable swc and enable babel to fix container image release
Browse files Browse the repository at this point in the history
Signed-off-by: pehlicd <65170388+pehlicd@users.noreply.github.com>
  • Loading branch information
pehlicd committed Oct 15, 2024
1 parent aeadb2f commit b780537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions ui/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
const nextConfig = {
distDir: 'dist',
output: 'export',
swcMinify: false,
experimental: {
forceSwcTransforms: true,
},
// swcMinify: false,
// experimental: {
// forceSwcTransforms: true,
// },
}

module.exports = nextConfig

0 comments on commit b780537

Please sign in to comment.