Fix: Resolve 500 error by building package assets in Docker
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m4s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user