diff --git a/blocksuite/affine/blocks/bookmark/src/components/bookmark-card.ts b/blocksuite/affine/blocks/bookmark/src/components/bookmark-card.ts index cbe7717df..bd8be9a7c 100644 --- a/blocksuite/affine/blocks/bookmark/src/components/bookmark-card.ts +++ b/blocksuite/affine/blocks/bookmark/src/components/bookmark-card.ts @@ -81,21 +81,10 @@ export class BookmarkCard extends SignalWatcher( const theme = this.bookmark.std.get(ThemeProvider).theme; const { LoadingIcon, EmbedCardBannerIcon } = getEmbedCardIcons(theme); - const titleIconType = - !icon?.split('.').pop() || icon?.split('.').pop() === 'svg' - ? 'svg+xml' - : icon?.split('.').pop(); - const titleIcon = this.loading ? LoadingIcon : icon - ? html` - ${WebIcon16} - ` + ? html`icon` : WebIcon16; const descriptionText = this.loading @@ -108,9 +97,7 @@ export class BookmarkCard extends SignalWatcher( const bannerImage = !this.loading && image - ? html` - ${EmbedCardBannerIcon} - ` + ? html`banner` : EmbedCardBannerIcon; return html` diff --git a/packages/backend/server/src/app.module.ts b/packages/backend/server/src/app.module.ts index ce32d008a..6282c9bbb 100644 --- a/packages/backend/server/src/app.module.ts +++ b/packages/backend/server/src/app.module.ts @@ -183,7 +183,7 @@ export function buildAppModule(env: Env) { // doc service only .useIf(() => env.flavors.doc, DocServiceModule) // self hosted server only - .useIf(() => env.selfhosted, WorkerModule, SelfhostModule) + .useIf(() => env.dev || env.selfhosted, WorkerModule, SelfhostModule) // gcloud .useIf(() => env.gcp, GCloudModule);