fix: ssr handoff crash

This commit is contained in:
James Xylight committed 2025-02-13 16:39:16 -08:00
1 parent c37d1789d6
commit 77671aaec5
9 files changed
+98 -113

No files matched your search

+10 -10
View File
@@ -5,6 +5,16 @@ import { env } from '$env/dynamic/public'
import { writable } from 'svelte/store'
import { profile } from './auth.svelte'
class InstanceData {
#instance = $derived(profile.data.instance)
get data() {
return this.#instance
}
}
export let instance = new InstanceData()
export const LINKED_INSTANCE_URL =
(env.PUBLIC_LOCK_TO_INSTANCE ?? 'true').toLowerCase() == 'true'
? env.PUBLIC_INSTANCE_URL
@@ -19,13 +29,3 @@ const getDefaultInstance = (): string => {
}
export const DEFAULT_INSTANCE_URL = getDefaultInstance()
class InstanceData {
#instance = $derived(profile.data.instance)
get data() {
return this.#instance
}
}
export let instance = new InstanceData()