mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
refactor: use main package exports instead of subpath imports
- Import Helpers from 'applesauce-core' instead of 'applesauce-core/helpers' - Import Blueprints from 'applesauce-factory' instead of 'applesauce-factory/blueprints' - Use namespace exports as documented in applesauce tutorial - Fixes Vercel build issue with internal module resolution - Follows recommended import patterns from applesauce docs
This commit is contained in:
@@ -3,14 +3,11 @@ import { lastValueFrom, takeUntil, timer, toArray } from 'rxjs'
|
||||
import { nip19 } from 'nostr-tools'
|
||||
import { AddressPointer } from 'nostr-tools/nip19'
|
||||
import { NostrEvent } from 'nostr-tools'
|
||||
import {
|
||||
getArticleTitle,
|
||||
getArticleImage,
|
||||
getArticlePublished,
|
||||
getArticleSummary
|
||||
} from 'applesauce-core/helpers'
|
||||
import { Helpers } from 'applesauce-core'
|
||||
import { RELAYS } from '../config/relays'
|
||||
|
||||
const { getArticleTitle, getArticleImage, getArticlePublished, getArticleSummary } = Helpers
|
||||
|
||||
export interface ArticleContent {
|
||||
title: string
|
||||
markdown: string
|
||||
|
||||
Reference in New Issue
Block a user