···55export const slingshotUrl: URL = new URL(get(settings).endpoints.slingshot);
66export const spacedustUrl: URL = new URL(get(settings).endpoints.spacedust);
77export const constellationUrl: URL = new URL(get(settings).endpoints.constellation);
88+export const pocketUrl: URL = new URL(get(settings).endpoints.pocket);
99+export const cdnUrl: URL = new URL(get(settings).endpoints.cdn);
810911export const httpToDidWeb = (url: string): Did => `did:web:${new URL(url).hostname}`;
+2-1
src/lib/at/pocket.ts
···11+import { httpToDidWeb, pocketUrl } from './index';
12import type { Did } from '@atcute/lexicons/syntax';
23import type { AtpClient } from './client.svelte';
34import { err, ok, type Result } from '$lib/result';
4555-const POCKET_PROXY = 'did:web:pocket.at-app.net#pocket_prefs';
66+const POCKET_PROXY = `${httpToDidWeb(pocketUrl.toString())}#pocket_prefs`;
6778export type Preferences = {
89 mutes?: Did[];
+2-1
src/lib/cdn.ts
···11import type { Did } from '@atcute/lexicons';
22+import { cdnUrl } from '$lib/at';
2333-export const cdn = `https://cdn.bsky.app`;
44+export const cdn = cdnUrl.origin;
4556export type ImageKind = 'avatar_thumbnail' | 'avatar' | 'feed_thumbnail' | 'feed_fullsize';
67export type ImageFormat = 'webp' | 'png' | 'jpg';