File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Constellation } from '#shared/utils/constellation'
2- import { NPMX_SITE } from '#shared/utils/constants'
2+ import { NPMX_SITE , NPMX_DID } from '#shared/utils/constants'
33
44const 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-
116export 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
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const CACHE_MAX_AGE_ONE_YEAR = 60 * 60 * 24 * 365
1010// API Strings
1111export const NPMX_SITE = 'https://npmx.dev'
1212export const NPMX_DOCS_SITE = 'https://docs.npmx.dev'
13+ export const NPMX_DID = 'did:plc:u5zp7npt5kpueado77kuihyz'
1314export const BLUESKY_API = 'https://public.api.bsky.app'
1415export const BLUESKY_COMMENTS_REQUEST = '/api/atproto/bluesky-comments'
1516export const NPM_REGISTRY = 'https://registry.npmjs.org'
You can’t perform that action at this time.
0 commit comments