feat: add PUBLIC_UMAMI_SCRIPT variable and integrate into layout
Some checks failed
Build and Push Docker Image to Gitea / build-and-push (push) Failing after 2m13s

This commit is contained in:
2026-02-21 11:05:30 +01:00
parent c85fa7798e
commit 13c6977e59
10 changed files with 19 additions and 6 deletions

View File

@@ -7,7 +7,8 @@ SvelteKit's `PUBLIC_*` environment variables are **baked into the JavaScript** a
1. ✅ Changing `PUBLIC_API_URL`
2. ✅ Changing `PUBLIC_URL`
3. ✅ Changing `PUBLIC_UMAMI_ID`
4. ❌ NOT needed for Directus env vars (those are runtime)
4. ✅ Changing `PUBLIC_UMAMI_SCRIPT`
5. ❌ NOT needed for Directus env vars (those are runtime)
## Quick Rebuild Process
@@ -24,6 +25,7 @@ Set your production values:
PUBLIC_API_URL=https://sexy.pivoine.art/api
PUBLIC_URL=https://sexy.pivoine.art
PUBLIC_UMAMI_ID=your-umami-id
PUBLIC_UMAMI_SCRIPT=https://umami.pivoine.art/script.js
```
### 2. Rebuild the Image
@@ -250,6 +252,7 @@ These are runtime environment variables and can be changed in docker-compose.
| `PUBLIC_API_URL` | ✅ Yes | Rebuild image |
| `PUBLIC_URL` | ✅ Yes | Rebuild image |
| `PUBLIC_UMAMI_ID` | ✅ Yes | Rebuild image |
| `PUBLIC_UMAMI_SCRIPT` | ✅ Yes | Rebuild image |
| `SEXY_DIRECTUS_*` | ❌ No | Restart container |
| `DB_*` | ❌ No | Restart container |
| `EMAIL_*` | ❌ No | Restart container |