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 36214d46ac
commit a5b94ab39b

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(