From 0645f78d78864a3d55110dabbce70fda5f84eafb Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 27 Oct 2025 20:33:27 -0300 Subject: [PATCH] chore: fix pdf fonts fetching for local development (#2950) [skip e2e] --- .../SuperEditor/Lexical/Utils/PDFExport/FontConfig.ts | 6 +++++- packages/web/web.webpack.dev.js | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/web/src/javascripts/Components/SuperEditor/Lexical/Utils/PDFExport/FontConfig.ts b/packages/web/src/javascripts/Components/SuperEditor/Lexical/Utils/PDFExport/FontConfig.ts index 78bab148f..e19c34cab 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Lexical/Utils/PDFExport/FontConfig.ts +++ b/packages/web/src/javascripts/Components/SuperEditor/Lexical/Utils/PDFExport/FontConfig.ts @@ -90,7 +90,11 @@ const FONT_VARIANT_TO_FONT_OPTIONS: Record { devMiddleware: { writeToDisk: argv.writeToDisk, }, + proxy: { + '/assets': { + target: 'https://assets.standardnotes.com', + changeOrigin: true, + secure: false, + pathRewrite: { + '^/assets': '', + }, + }, + }, }, }) }