diff --git a/package.json b/package.json index 0c47ecceb..a03462ee8 100644 --- a/package.json +++ b/package.json @@ -135,4 +135,4 @@ "simple-git-hooks": { "commit-msg": "pnpm exec commitlint --edit $1" } -} \ No newline at end of file +} diff --git a/src/lib/hooks/is-hover.svelte.ts b/src/lib/hooks/is-hover.svelte.ts index 52b51b1e8..936096b6c 100644 --- a/src/lib/hooks/is-hover.svelte.ts +++ b/src/lib/hooks/is-hover.svelte.ts @@ -1,11 +1,11 @@ export class IsHover { #current = $state(true); - constructor() { } + constructor() {} get current() { return this.#current; } - destroy() { } -} \ No newline at end of file + destroy() {} +} diff --git a/src/lib/sections/stats/Overview.svelte b/src/lib/sections/stats/Overview.svelte index b96fbcd6d..e4d790060 100644 --- a/src/lib/sections/stats/Overview.svelte +++ b/src/lib/sections/stats/Overview.svelte @@ -15,4 +15,4 @@ - \ No newline at end of file + diff --git a/wrangler.jsonc b/wrangler.jsonc index ada73615d..d656e057c 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -11,15 +11,30 @@ }, "routes": [ { - "pattern": "skycrypt-embed.lunarclient.com", - "custom_domain": true + "pattern": "skycrypt-embed.lunarclient.com", + "custom_domain": true } ], + // Exported to Better Stack via the OTLP destinations configured in the + // Cloudflare dashboard (Workers & Pages -> Observability -> Telemetry). + // persist: true also retains everything in the CF dashboard. "observability": { - "enabled": true + "enabled": true, + "logs": { + "enabled": true, + "destinations": ["betterstack-logs"], + "head_sampling_rate": 1.0, + "persist": true + }, + "traces": { + "enabled": true, + "destinations": ["betterstack-traces"], + "head_sampling_rate": 0.01, + "persist": true + } }, "vars": { "PUBLIC_SERVER_API_URL": "https://sky.shiiyu.moe/api/", "PUBLIC_API_URL": "https://sky.shiiyu.moe/api/" } -} \ No newline at end of file +}