Skip to content

Commit eaa1b0a

Browse files
committed
chore: remove test did and backlink comments
Replace with NPMX_DID which is also moved to shared constants.
1 parent f52c91a commit eaa1b0a

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

app/composables/useBlogPostBlueskyLink.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
import { Constellation } from '#shared/utils/constellation'
2-
import { NPMX_SITE } from '#shared/utils/constants'
2+
import { NPMX_SITE, NPMX_DID } from '#shared/utils/constants'
33

44
const BLOG_BACKLINK_TTL_IN_SECONDS = 60 * 5
55

6-
// TODO: Remove did when going live
7-
const TESTING_ROE_DID = 'did:plc:jbeaa5kdaladzwq3r7f5xgwe'
8-
// const TESTING_BACKLINK_URL = 'https://roe.dev/blog/the-golden-thread'
9-
// const NPMX_DID = 'did:plc:u5zp7npt5kpueado77kuihyz'
10-
116
export interface BlogPostBlueskyLink {
127
did: string
138
rkey: string
@@ -21,7 +16,6 @@ export function useBlogPostBlueskyLink(slug: MaybeRefOrGetter<string | null | un
2116
const s = toValue(slug)
2217
if (!s) return null
2318
return `${NPMX_SITE}/blog/${s}`
24-
// return TESTING_BACKLINK_URL
2519
})
2620

2721
return useAsyncData<BlogPostBlueskyLink | null>(
@@ -62,7 +56,7 @@ export function useBlogPostBlueskyLink(slug: MaybeRefOrGetter<string | null | un
6256
1,
6357
undefined,
6458
true,
65-
[[TESTING_ROE_DID]],
59+
[[NPMX_DID]],
6660
BLOG_BACKLINK_TTL_IN_SECONDS,
6761
)
6862

shared/utils/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const CACHE_MAX_AGE_ONE_YEAR = 60 * 60 * 24 * 365
1010
// API Strings
1111
export const NPMX_SITE = 'https://npmx.dev'
1212
export const NPMX_DOCS_SITE = 'https://docs.npmx.dev'
13+
export const NPMX_DID = 'did:plc:u5zp7npt5kpueado77kuihyz'
1314
export const BLUESKY_API = 'https://public.api.bsky.app'
1415
export const BLUESKY_COMMENTS_REQUEST = '/api/atproto/bluesky-comments'
1516
export const NPM_REGISTRY = 'https://registry.npmjs.org'

0 commit comments

Comments
 (0)