From 2d12674d63e8ecef21cdba4aa9e0e7538b755122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Wed, 4 Feb 2026 12:01:07 -0300 Subject: [PATCH] Fix: Resolve 500 error by building package assets in Docker - 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. --- Dockerfile | 3 +++ package.json | 24 ++++++++++++++++++- ...tailwind.config.js => tailwind.config.cjs} | 0 3 files changed, 26 insertions(+), 1 deletion(-) rename packages/Webkul/Admin/{tailwind.config.js => tailwind.config.cjs} (100%) diff --git a/Dockerfile b/Dockerfile index 8577a80..ab37e73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/package.json b/package.json index f690541..f0bf09d 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,30 @@ "build": "vite build" }, "devDependencies": { + "@playwright/test": "^1.50.1", + "@types/node": "^22.7.8", + "@vitejs/plugin-vue": "^5.0.0", + "autoprefixer": "^10.4.16", "axios": "^1.6.4", "laravel-vite-plugin": "^1.0.0", - "vite": "^5.0.0" + "postcss": "^8.4.23", + "tailwindcss": "^3.3.2", + "vite": "^5.0.0", + "vue": "^3.4.0" + }, + "dependencies": { + "@vee-validate/i18n": "^4.9.1", + "@vee-validate/rules": "^4.9.1", + "chartjs-chart-funnel": "^4.2.1", + "dompurify": "^3.1.7", + "dotenv": "^16.4.7", + "flatpickr": "^4.6.13", + "mitt": "^3.0.1", + "playwright": "^1.48.1", + "readline-sync": "^1.4.10", + "vee-validate": "^4.9.1", + "vue-cal": "^4.9.0", + "vue-flatpickr": "^2.3.0", + "vuedraggable": "^4.1.0" } } diff --git a/packages/Webkul/Admin/tailwind.config.js b/packages/Webkul/Admin/tailwind.config.cjs similarity index 100% rename from packages/Webkul/Admin/tailwind.config.js rename to packages/Webkul/Admin/tailwind.config.cjs