fix(resources): Use full path to font when cdnCache is false (#976)

This commit is contained in:
Emile Bangma 2024-03-09 17:59:55 +01:00 committed by GitHub
parent 2e9a0c21db
commit 94a54698ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,7 +228,7 @@ export const ComponentResources: QuartzEmitterPlugin<Options> = (opts?: Partial<
googleFontsStyleSheet = googleFontsStyleSheet.replace(
url,
`/static/fonts/${filename}.ttf`,
`https://${cfg.baseUrl}/static/fonts/${filename}.ttf`,
)
promises.push(