Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: download selfhost fonts script (#6970)

Brooooooklynb89e088153b2
diff --git a/scripts/download-blocksuite-fonts.mjs b/scripts/download-blocksuite-fonts.mjs
index 0413644032..b1e9d5d444 100644
--- a/scripts/download-blocksuite-fonts.mjs
+++ b/scripts/download-blocksuite-fonts.mjs
@@ -3,7 +3,7 @@ import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
-import { CanvasTextFonts } from '@blocksuite/blocks/dist/surface-block/consts.js';
+import { AffineCanvasTextFonts } from '@blocksuite/blocks/dist/surface-block/consts.js';
const fontPath = join(
fileURLToPath(import.meta.url),
@@ -17,7 +17,7 @@ const fontPath = join(
);
await Promise.all(
- CanvasTextFonts.map(async ({ url }) => {
+ AffineCanvasTextFonts.map(async ({ url }) => {
const buffer = await fetch(url).then(res =>
res.arrayBuffer().then(res => Buffer.from(res))
);