fix: plausible script url
Browse files- chart/env/prod.yaml +1 -1
- src/routes/+layout.svelte +3 -7
chart/env/prod.yaml
CHANGED
|
@@ -67,7 +67,7 @@ envVars:
|
|
| 67 |
PUBLIC_APP_NAME: "HuggingChat"
|
| 68 |
PUBLIC_APP_DESCRIPTION: "Making the community's best AI chat models available to everyone"
|
| 69 |
PUBLIC_ORIGIN: "https://huggingface.co"
|
| 70 |
-
PUBLIC_PLAUSIBLE_SCRIPT_URL: "/js/
|
| 71 |
|
| 72 |
TASK_MODEL: "Qwen/Qwen3-4B-Instruct-2507"
|
| 73 |
LLM_ROUTER_ARCH_BASE_URL: "https://router.huggingface.co/v1"
|
|
|
|
| 67 |
PUBLIC_APP_NAME: "HuggingChat"
|
| 68 |
PUBLIC_APP_DESCRIPTION: "Making the community's best AI chat models available to everyone"
|
| 69 |
PUBLIC_ORIGIN: "https://huggingface.co"
|
| 70 |
+
PUBLIC_PLAUSIBLE_SCRIPT_URL: "https://plausible.io/js/pa-Io_oigECawqdlgpf5qvHb.js"
|
| 71 |
|
| 72 |
TASK_MODEL: "Qwen/Qwen3-4B-Instruct-2507"
|
| 73 |
LLM_ROUTER_ARCH_BASE_URL: "https://router.huggingface.co/v1"
|
src/routes/+layout.svelte
CHANGED
|
@@ -211,12 +211,8 @@
|
|
| 211 |
<link rel="apple-touch-icon" href="{publicConfig.assetPath}/apple-touch-icon.png" />
|
| 212 |
<link rel="manifest" href="{publicConfig.assetPath}/manifest.json" />
|
| 213 |
|
| 214 |
-
{#if publicConfig.PUBLIC_PLAUSIBLE_SCRIPT_URL
|
| 215 |
-
<script
|
| 216 |
-
defer
|
| 217 |
-
data-domain={new URL(publicConfig.PUBLIC_ORIGIN).hostname}
|
| 218 |
-
src={publicConfig.PUBLIC_PLAUSIBLE_SCRIPT_URL}
|
| 219 |
-
></script>
|
| 220 |
{/if}
|
| 221 |
|
| 222 |
{#if publicConfig.PUBLIC_APPLE_APP_ID}
|
|
@@ -290,7 +286,7 @@
|
|
| 290 |
{#if publicConfig.PUBLIC_PLAUSIBLE_SCRIPT_URL}
|
| 291 |
<script>
|
| 292 |
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
|
| 293 |
-
plausible.init()
|
| 294 |
</script>
|
| 295 |
{/if}
|
| 296 |
</div>
|
|
|
|
| 211 |
<link rel="apple-touch-icon" href="{publicConfig.assetPath}/apple-touch-icon.png" />
|
| 212 |
<link rel="manifest" href="{publicConfig.assetPath}/manifest.json" />
|
| 213 |
|
| 214 |
+
{#if publicConfig.PUBLIC_PLAUSIBLE_SCRIPT_URL}
|
| 215 |
+
<script async src={publicConfig.PUBLIC_PLAUSIBLE_SCRIPT_URL}></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
{/if}
|
| 217 |
|
| 218 |
{#if publicConfig.PUBLIC_APPLE_APP_ID}
|
|
|
|
| 286 |
{#if publicConfig.PUBLIC_PLAUSIBLE_SCRIPT_URL}
|
| 287 |
<script>
|
| 288 |
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
|
| 289 |
+
plausible.init();
|
| 290 |
</script>
|
| 291 |
{/if}
|
| 292 |
</div>
|