make umami variables dynamic when building

This commit is contained in:
mroxso
2024-08-04 21:17:57 +02:00
parent c1aa987320
commit 2e15b7603d
4 changed files with 5 additions and 7 deletions

View File

@@ -85,6 +85,5 @@ jobs:
ssh -o StrictHostKeyChecking=no ${{ env.MAIN_HOST_USERNAME }}@${{ env.MAIN_HOST }} '
cd lumina &&
git pull origin main &&
docker compose pull &&
docker compose up -d
docker compose up -d --build
'

View File

@@ -84,6 +84,5 @@ jobs:
ssh -o StrictHostKeyChecking=no ${{ env.BETA_HOST_USERNAME }}@${{ env.BETA_HOST }} '
cd lumina &&
git pull origin beta &&
docker compose pull &&
docker compose up -d
docker compose up -d --build
'

View File

@@ -2,6 +2,6 @@ version: '3'
services:
lumina:
build: .
image: ghcr.io/lumina-rocks/lumina:latest
# image: ghcr.io/lumina-rocks/lumina:latest
ports:
- "8080:3000"

View File

@@ -39,9 +39,9 @@ export default function RootLayout({
<TopNavigation />
<Toaster />
<Script
src="https://umami.softwerk.cloud/script.js"
src={`${process.env.NEXT_PUBLIC_UMAMI_URL}/script.js`}
strategy="afterInteractive"
data-website-id="d0495d49-1f04-4501-8711-3bdcb4f7f7bd"
data-website-id={process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID}
defer
/>
<div className="main-content pb-14">