From 2ff7a2473638a96e4fd3a709c86ba429fd47d3bd Mon Sep 17 00:00:00 2001 From: theRADcozaDEV Date: Wed, 11 Mar 2026 06:25:03 +0200 Subject: [PATCH] Add frontend asset build to setup scripts Added Step 11 to both setup.bat and setup.sh: - Run npm install to install dependencies - Run npm run build to compile Vite assets - Creates public/build/manifest.json This fixes the 'Vite manifest not found' error that occurred when trying to login after fresh setup. The node container is used for npm commands since the app container doesn't have Node.js installed. --- setup.bat | 7 +++++++ setup.sh | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/setup.bat b/setup.bat index 1ba90d5..c6d99c4 100644 --- a/setup.bat +++ b/setup.bat @@ -212,6 +212,13 @@ docker-compose exec -T app php artisan storage:link echo Storage linked echo. +REM Step 11: Build frontend assets +echo Building frontend assets... +docker-compose run --rm node npm install >nul 2>&1 +docker-compose run --rm node npm run build >nul 2>&1 +echo Frontend assets built +echo. + REM Done echo. echo ======================================================== diff --git a/setup.sh b/setup.sh index 59ebef9..1e56268 100644 --- a/setup.sh +++ b/setup.sh @@ -187,6 +187,13 @@ docker-compose exec app php artisan storage:link echo -e "${GREEN}✓ Storage linked${NC}" echo "" +# Step 11: Build frontend assets +echo -e "${YELLOW}→ Building frontend assets...${NC}" +docker-compose run --rm node npm install >/dev/null 2>&1 +docker-compose run --rm node npm run build >/dev/null 2>&1 +echo -e "${GREEN}✓ Frontend assets built${NC}" +echo "" + # Done! echo "" echo -e "${GREEN}╔════════════════════════════════════════════════════════╗${NC}"