fix: use require

This commit is contained in:
TrèsAbhi committed 2024-03-09 22:15:22 -06:00
1 parent 196f780bb3
commit 6ee1fa13d3
1 file changed
+6 -3
+6 -3
View File
@@ -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(