mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +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_FILES = [
|
||||
{ weight: 400 as const, path: 'src/assets/fonts/Roboto.ttf' },
|
||||
{ weight: 700 as const, path: 'src/assets/fonts/Roboto-Bold.ttf' },
|
||||
{ weight: 900 as const, path: 'src/assets/fonts/Roboto-Black.ttf' },
|
||||
{ weight: 400 as const, path: require('../../assets/fonts/Roboto.ttf') },
|
||||
{ weight: 700 as const, path: require('../../assets/fonts/Roboto-Bold.ttf') },
|
||||
{
|
||||
weight: 900 as const,
|
||||
path: require('../../assets/fonts/Roboto-Black.ttf'),
|
||||
},
|
||||
];
|
||||
|
||||
const fonts = Promise.all(
|
||||
|
||||
Reference in new issue
Block a user