@@ -34,12 +34,14 @@
|
||||
|
||||
## Web Root
|
||||
|
||||
The web server should serve `public/` as the application document root. PHP source, configuration, Composer dependencies, uploaded files, and GPX data stay outside the public tree; `public/index.php` is the front controller and webpack writes generated frontend assets to `public/assets/`.
|
||||
The web server should serve `public/` as the application document root. PHP source, configuration, Composer dependencies, uploaded files, and GPX data stay outside the public tree; `public/index.php` is the front controller and Vite writes generated frontend assets to `public/assets/`.
|
||||
|
||||
Runtime data is exposed through symlinks only: `public/files -> ../files` and `public/geo -> ../resources/geo`. The build must not copy uploaded media or GPX data into `public/`.
|
||||
|
||||
## Local Development
|
||||
|
||||
`npm run dev` watches and builds development assets into `public/assets/`. `npm run prod` builds hashed production assets into `public/assets/`. PHP reads `public/.vite/manifest.json` and populates the CSS, module, and preload parts defined in `resources/masks/index.html` while rendering the request.
|
||||
|
||||
When developing Spot and the sibling `objects` library together, install dependencies through the local Composer manifest:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user