修正 CI/CD 部署後 npm run build 殘留的 public/hot 導致 Vite HMR 及 CORS 報錯問題
Some checks failed
ERP-Deploy-Demo / deploy-demo (push) Failing after 24s
ERP-Deploy-Production / deploy-production (push) Successful in 58s

This commit is contained in:
2026-02-23 16:02:40 +08:00
parent 6bb2afa3b7
commit 747f70865d
2 changed files with 3 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ jobs:
composer install --no-dev --optimize-autoloader --no-interaction &&
npm install &&
npm run build &&
rm -f public/hot &&
php artisan storage:link &&
php artisan migrate --force &&
php artisan tenants:migrate --force &&

View File

@@ -80,7 +80,8 @@ jobs:
docker exec -u 1000:1000 -w /var/www/html star-erp-laravel sh -c "
composer install --no-dev --optimize-autoloader &&
npm install &&
npm run build
npm run build &&
rm -f public/hot
php artisan storage:link &&
php artisan migrate --force &&