Add ViteHelper fallback for missing frontend assets

This commit is contained in:
2026-03-15 07:47:59 +02:00
parent 94f4e53860
commit dff2cd752c
6 changed files with 131 additions and 3 deletions

View File

@@ -208,6 +208,20 @@ If you prefer manual control:
| `make setup-laravel` | Configure auth, API, middleware |
| `make setup-all` | Run both setup scripts |
### Frontend Assets (Vite)
Build frontend CSS/JS assets:
```bash
# Build assets for production
docker-compose run --rm node npm run build
# Or run Vite dev server (hot reload)
docker-compose --profile frontend up -d
```
> **Note:** The template includes a resilient fallback - if assets aren't built, basic styling is provided and a development warning is shown. This prevents the `ViteManifestNotFoundException` error from breaking the app.
## Laravel Setup (Auth, API, Middleware)
After installing Laravel, run the interactive setup: