feat: Add instance URL changing via env var

This commit is contained in:
Xyphyn committed 2023-07-22 10:59:35 -07:00
1 parent 964471648e
commit e742e32832
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -9,8 +9,9 @@ import { get, writable } from 'svelte/store'
import { PUBLIC_PROXY_URL } from '$env/static/public'
import { ToastType, toast } from '$lib/components/ui/toasts/toasts.js'
import { userSettings } from '$lib/settings.js'
import { env } from '$env/dynamic/public'
export const DEFAULT_INSTANCE_URL = 'lemmy.ml'
export const DEFAULT_INSTANCE_URL = env.PUBLIC_INSTANCE_URL || 'lemm.ee'
export let instance = writable(DEFAULT_INSTANCE_URL)
export let corsSupported = writable(true)