Skip to content

Commit e35ee74

Browse files
committed
Revert "chore: fix pdf fonts fetching for local development (#2950) [skip e2e]"
This reverts commit 6efa5f4.
1 parent 77c1847 commit e35ee74

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/web/src/javascripts/Components/SuperEditor/Lexical/Utils/PDFExport/FontConfig.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ const FONT_VARIANT_TO_FONT_OPTIONS: Record<FontVariant, { fontWeight: FontWeight
9090
},
9191
}
9292

93-
const FONT_ASSETS_BASE_PATH =
94-
process.env.NODE_ENV === 'development'
95-
? 'http://localhost:3001/assets/fonts'
96-
: 'https://assets.standardnotes.com/fonts'
97-
93+
const FONT_ASSETS_BASE_PATH = 'https://assets.standardnotes.com/fonts'
9894
const FALLBACK_FONT_SOURCE = '/noto-sans/NotoSans-Regular.ttf'
9995

10096
export const FALLBACK_FONT_FAMILY = FontFamily.Helvetica

packages/web/web.webpack.dev.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ module.exports = (env, argv) => {
2929
devMiddleware: {
3030
writeToDisk: argv.writeToDisk,
3131
},
32-
proxy: {
33-
'/assets': {
34-
target: 'https://assets.standardnotes.com',
35-
changeOrigin: true,
36-
secure: false,
37-
pathRewrite: {
38-
'^/assets': '',
39-
},
40-
},
41-
},
4232
},
4333
})
4434
}

0 commit comments

Comments
 (0)