Fix: Resolve 500 error by building package assets in Docker
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m4s

- Added missing dependencies to root package.json for sub-package builds.
- Renamed Admin/tailwind.config.js to .cjs to fix ESM/CJS build conflict.
- Updated Dockerfile to run Vite build for Admin, Installer, and WebForm packages.
This commit is contained in:
Cauê Faleiros
2026-02-04 12:01:07 -03:00
parent 564da06e67
commit 2d12674d63
3 changed files with 26 additions and 1 deletions

View File

@@ -36,6 +36,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& npm install \
&& npm run build \
&& (cd packages/Webkul/Admin && npx vite build) \
&& (cd packages/Webkul/Installer && npx vite build) \
&& (cd packages/Webkul/WebForm && npx vite build) \
&& rm -rf node_modules
# 5. Script de Entrada