mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: use require
This commit is contained in:
1 parent
196f780bb3
commit
6ee1fa13d3
1 file changed
+6
-3
@@ -3,9 +3,12 @@ import satori from 'satori';
|
|||||||
|
|
||||||
const FONT_NAME = 'Roboto';
|
const FONT_NAME = 'Roboto';
|
||||||
const FONT_FILES = [
|
const FONT_FILES = [
|
||||||
{ weight: 400 as const, path: 'src/assets/fonts/Roboto.ttf' },
|
{ weight: 400 as const, path: require('../../assets/fonts/Roboto.ttf') },
|
||||||
{ weight: 700 as const, path: 'src/assets/fonts/Roboto-Bold.ttf' },
|
{ weight: 700 as const, path: require('../../assets/fonts/Roboto-Bold.ttf') },
|
||||||
{ weight: 900 as const, path: 'src/assets/fonts/Roboto-Black.ttf' },
|
{
|
||||||
|
weight: 900 as const,
|
||||||
|
path: require('../../assets/fonts/Roboto-Black.ttf'),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const fonts = Promise.all(
|
const fonts = Promise.all(
|
||||||
|
|||||||
Reference in new issue
Block a user