Fix: Copy assets to assets/ directory for BOSA automatic serving

This commit is contained in:
mmabdalla 2025-12-29 10:04:28 +02:00
parent d168cd9570
commit c380db0815

View file

@ -110,6 +110,14 @@ if exist "%SOURCE_DIR%\dist" (
echo [OK] Copied dist directory (frontend build)
)
REM Copy assets to assets/ directory for BOSA automatic serving
REM BOSA automatically serves files from assets/ at /bp_wb/assets/
if exist "%SOURCE_DIR%\dist\assets" (
if not exist "%TARGET_DIR%\assets" mkdir "%TARGET_DIR%\assets"
xcopy /E /I /Y "%SOURCE_DIR%\dist\assets\*" "%TARGET_DIR%\assets\" >nul
echo [OK] Copied assets to assets/ directory (BOSA automatic serving)
)
REM Copy docs directory (optional, for documentation)
if exist "%SOURCE_DIR%\docs" (
xcopy /E /I /Y "%SOURCE_DIR%\docs" "%TARGET_DIR%\docs" >nul