misc: Change default instance url
This commit is contained in:
1 parent
3bc9c67bc4
commit
33a31f8a25
2 files changed
+2
-1
No files matched your search
@@ -30,6 +30,7 @@ export async function handle({ event, resolve }) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (!data.ok) {
|
if (!data.ok) {
|
||||||
|
console.log(`${data.status}: ${data.statusText}`)
|
||||||
return new Response(
|
return new Response(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
message: await data.text(),
|
message: await data.text(),
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import {
|
|||||||
import { get, writable } from 'svelte/store'
|
import { get, writable } from 'svelte/store'
|
||||||
import { PUBLIC_PROXY_URL } from '$env/static/public'
|
import { PUBLIC_PROXY_URL } from '$env/static/public'
|
||||||
|
|
||||||
export const DEFAULT_INSTANCE_URL = 'programming.dev'
|
export const DEFAULT_INSTANCE_URL = 'lemmy.world'
|
||||||
export let instance_url = writable(DEFAULT_INSTANCE_URL)
|
export let instance_url = writable(DEFAULT_INSTANCE_URL)
|
||||||
|
|
||||||
export function getClient(instance?: string): LemmyHttp {
|
export function getClient(instance?: string): LemmyHttp {
|
||||||
|
|||||||
Reference in new issue
Block a user