feat(caddy): Ajoute une redirection pour le script de statistiques et l'intègre

 feat(template): Intègre le script de statistiques via la nouvelle redirection
This commit is contained in:
Serreau Jovann
2025-11-17 11:01:02 +01:00
parent 900ebc61b5
commit 381210448c
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,10 @@ www.e-cosplay.fr {
max_size 100MB
}
handle_path /ts.js {
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js
}
handle_path /vs.js {
redir https://datas.e-cosplay.fr/script.js
}
header {

View File

@@ -93,7 +93,7 @@
<script type="text/javascript" src="/ts.js" async></script>
{{ vite_asset('app.js', []) }}
{% if app.environment == "prod" %}
<script defer src="https://datas.e-cosplay.fr/script.js" data-website-id="b929d372-fbea-403e-9ae2-781433828787"></script>
<script defer src="/vs.js" data-website-id="b929d372-fbea-403e-9ae2-781433828787"></script>
{% endif %}
</head>