Skip to content

Commit cbe64aa

Browse files
committed
set single fixed plausible data-domain
1 parent 701bb3f commit cbe64aa

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/default__build-push-docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Docker metadata
4747
# disable this step
48-
# if: false
48+
if: false
4949
id: metadata
5050
uses: docker/metadata-action@v5
5151
with:
@@ -88,10 +88,10 @@ jobs:
8888
"ARG_SITE_URL=${{ env.SITE_URL }}"
8989
"ARG_PLAUSIBLE_SCRIPT_URL=${{ env.PLAUSIBLE_SCRIPT_URL }}"
9090
push: true
91-
# tags: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest
91+
tags: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest
9292
# disabled metadata step
93-
tags: ${{ steps.metadata.outputs.tags }}
94-
labels: ${{ steps.metadata.outputs.labels }}
95-
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:buildcache
96-
cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
97-
# cache-to: type=inline
93+
# tags: ${{ steps.metadata.outputs.tags }}
94+
# labels: ${{ steps.metadata.outputs.labels }}
95+
# cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:buildcache
96+
# cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
97+
cache-to: type=inline

src/components/BaseHead.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import type { Metadata } from '@/types/common';
1515
1616
const { AUTHOR_NAME, PLAUSIBLE_SCRIPT_URL } = CONFIG_CLIENT;
1717
18+
// this must be the same for all mirrors
19+
const PLAUSIBLE_DATA_DOMAIN = 'nemanjamitic.com';
1820
export interface BaseHeadProps {
1921
metadata: Metadata;
2022
}
@@ -107,7 +109,12 @@ const ogImageUrl = new URL(image, url);
107109
PLAUSIBLE_SCRIPT_URL && (
108110
<>
109111
<link rel="preconnect" href={PLAUSIBLE_SCRIPT_URL} />
110-
<script defer type="text/partytown" data-domain={host} src={PLAUSIBLE_SCRIPT_URL} />
112+
<script
113+
defer
114+
type="text/partytown"
115+
data-domain={PLAUSIBLE_DATA_DOMAIN}
116+
src={PLAUSIBLE_SCRIPT_URL}
117+
/>
111118
</>
112119
)
113120
}

0 commit comments

Comments
 (0)