diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-09-05 17:27:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-05 09:27:18 -0500 |
commit | 457cd3d0fb4074401eb4df12a5d27fd7cc1387cc (patch) | |
tree | e9aea9bd47477cdad518c44d9fac2e4c19b0adf3 /src/lib/constants.ts | |
parent | bc827dc97f6a092b19af5cfda1008cbd9d263a11 (diff) | |
download | voidsky-457cd3d0fb4074401eb4df12a5d27fd7cc1387cc.tar.zst |
E2E fixes (#8980)
* update dev-env * hide nux after onboarding * use getter/setter for proxy header
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r-- | src/lib/constants.ts | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 5871821f4..616092f15 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -214,13 +214,14 @@ export const PUBLIC_STAGING_APPVIEW_DID = 'did:web:api.staging.bsky.dev' export const DEV_ENV_APPVIEW = `http://localhost:2584` // always the same // temp hack for e2e - esb -export let BLUESKY_PROXY_HEADER: ProxyHeaderValue = `${BLUESKY_PROXY_DID}#bsky_appview` -export function setBlueskyProxyHeader(header: ProxyHeaderValue) { - BLUESKY_PROXY_HEADER = header -} - -export const BLUESKY_SERVICE_HEADERS = { - 'atproto-proxy': BLUESKY_PROXY_HEADER, +export const BLUESKY_PROXY_HEADER = { + value: `${BLUESKY_PROXY_DID}#bsky_appview`, + get() { + return this.value as ProxyHeaderValue + }, + set(value: string) { + this.value = value + }, } export const DM_SERVICE_HEADERS = { |