Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(cloud): omit disabled auth telemetry from Worker builds

Timothy Yind79bc0773745
diff --git a/apps/cloud/nuxt.config.ts b/apps/cloud/nuxt.config.ts
index e24cf7ba..6812e8dc 100644
--- a/apps/cloud/nuxt.config.ts
+++ b/apps/cloud/nuxt.config.ts
@@ -14,6 +14,13 @@ export default defineNuxtConfig({
...sharedUi.nitro,
// WebAuthn certificate validation uses reflection during module initialization.
moduleSideEffects: ['reflect-metadata'],
+ // Telemetry is disabled; omit the library's optional Node environment probes too.
+ alias: {
+ ...sharedUi.nitro.alias,
+ '@better-auth/telemetry': fileURLToPath(
+ new URL('./server/utils/account-telemetry.ts', import.meta.url),
+ ),
+ },
cloudflare: {
...sharedUi.nitro.cloudflare,
wrangler: { name: 'chronoframe-cloud', compatibility_date: '2026-10-22' },
diff --git a/apps/cloud/server/utils/account-telemetry.ts b/apps/cloud/server/utils/account-telemetry.ts
new file mode 100644
index 00000000..1842b17c
--- /dev/null
+++ b/apps/cloud/server/utils/account-telemetry.ts
@@ -0,0 +1,7 @@
+/** Cloud does not collect Better Auth telemetry or inspect installed Node database drivers. */
+export async function createTelemetry(..._options: unknown[]) {
+ return { publish: async (..._events: unknown[]) => {} }
+}
+export async function getTelemetryAuthConfig(..._options: unknown[]) {
+ return {}
+}